diff --git a/include/staff/dynamic-form.inc.php b/include/staff/dynamic-form.inc.php index 2b9a24e6d4241df5fd07d941f9d9582a28da9859..ca7dcf82e558f17ac828f4bc34d65808f1ba9ac2 100644 --- a/include/staff/dynamic-form.inc.php +++ b/include/staff/dynamic-form.inc.php @@ -266,9 +266,10 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info); </div> <script type="text/javascript"> -$('form.manage-form').on('submit.inline', function() { +$('form.manage-form').on('submit.inline', function(e) { var formObj = this, deleted = $('input.delete-box:checked', this); if (deleted.length) { + e.stopImmediatePropagation(); $('#overlay').show(); $('#deleted-fields').empty(); deleted.each(function(i, e) {