From 100aa178b093903a3844080e340ae4223fed9fab Mon Sep 17 00:00:00 2001 From: jean Date: Tue, 11 Sep 2012 15:00:36 +1200 Subject: [PATCH] FIX 7856 If the submit button is disabled, to perform the ajax request --- admin/javascript/LeftAndMain.AddForm.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/admin/javascript/LeftAndMain.AddForm.js b/admin/javascript/LeftAndMain.AddForm.js index 66f62d7c8..8f7c20c26 100644 --- a/admin/javascript/LeftAndMain.AddForm.js +++ b/admin/javascript/LeftAndMain.AddForm.js @@ -81,6 +81,10 @@ // default to first button var button = this.find(':submit:first'); + if (button.is(':disabled')){ + e.preventDefault(); + return; + } button.addClass('loading'); // collect data and submit the form