From 39db6baa60ad212228842430d429152262d31c92 Mon Sep 17 00:00:00 2001
From: Jared Hancock <jared@osticket.com>
Date: Tue, 20 May 2014 12:05:36 -0500
Subject: [PATCH] forms: Don't show [loading] and delete confirm together

---
 include/staff/dynamic-form.inc.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/include/staff/dynamic-form.inc.php b/include/staff/dynamic-form.inc.php
index 2b9a24e6d..ca7dcf82e 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) {
-- 
GitLab