Skip to content

Commit

Permalink
Merge pull request #468 from jan-stanek/oprava-prihlasky
Browse files Browse the repository at this point in the history
oprava prihlasky
  • Loading branch information
Jan Staněk authored Dec 29, 2017
2 parents 2b31e90 + 38d14f1 commit 37a71ff
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
11 changes: 11 additions & 0 deletions app/WebModule/components/templates/application_content.latte
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
{block head}
<script>
$(function () {
$('form#frm-applicationContent-applicationForm').submit(function () {
if(!LiveForm.forms[this.id].hasError)
$(this).find(':input[type=submit]').prop('disabled', true);
});
});
</script>
{/block}

<div class="application-content">
<div class="row">
<div class="col-sm-12">
Expand Down
4 changes: 0 additions & 4 deletions www/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ function init() {
initDateTimePicker();

$('[data-toggle="tooltip"]').tooltip();

$('form#frm-applicationContent-applicationForm').submit(function () {
$(this).find(':input[type=submit]').prop('disabled', true);
});
}

function animateAlerts() {
Expand Down

0 comments on commit 37a71ff

Please sign in to comment.