Skip to content

Commit

Permalink
Merge pull request #354 from peeb/project_admin_fixes
Browse files Browse the repository at this point in the history
[#313] Added jQuery to grey out submit buttons after click event.
  • Loading branch information
peeb committed Oct 17, 2013
2 parents 8b3c497 + 3893c52 commit 462e83d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions akvo/templates/admin/rsr/project/change_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,15 @@ <h2>{% trans 'Adding and Editing Projects.' %}</h2>
{# JavaScript for prepopulated fields #}
{% prepopulated_fields_js %}

{# Disable form submit buttons after they have been clicked #}
<script type="text/javascript">
(function($) {
$("input:submit").click(function(){
$("input:submit").attr("disabled", true);
});
})(django.jQuery);
</script>

</div>
</form>
</div>
Expand Down

0 comments on commit 462e83d

Please sign in to comment.