Skip to content

Commit

Permalink
Disable submit button after clicking
Browse files Browse the repository at this point in the history
  • Loading branch information
odenypeter committed Oct 25, 2017
1 parent e15ca96 commit dccff59
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
9 changes: 7 additions & 2 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -299,9 +299,14 @@ <h3 class="modal-title font9">Submit a Ticket</h3>

})
});

$('#ticket_form').one('submit', function() {
$(this).find('input[type="submit"]').attr('disabled','disabled');
});

</script>

{% endblock %}
</body>
{% endblock %}
</body>
</html>

1 change: 0 additions & 1 deletion templates/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<script type="text/javascript" src="{{ STATIC_URL }}js/form_validator.js"></script>

<div class="container col-md-12">
<div class="home_cover">
Expand Down

0 comments on commit dccff59

Please sign in to comment.