From 0bad2f89637cbdc3983fda8b062fb94675bdf609 Mon Sep 17 00:00:00 2001 From: cigamit Date: Fri, 30 Dec 2016 14:13:55 -0600 Subject: [PATCH] Prevent import and export buttons from disabling. --- include/layout.js | 4 ++-- lib/html_form.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/layout.js b/include/layout.js index ed8cd30dd..7a92087ab 100644 --- a/include/layout.js +++ b/include/layout.js @@ -410,14 +410,14 @@ function applySkin() { theme = 'classic'; // debounce submits - $('input[type="submit"], button[type="submit"]').click(function() { + $('input[type="submit"], button[type="submit"]').not('.import, .export').click(function() { $(this).prop('disabled', true); }); }else{ $('input[type=submit], input[type=button]').button(); // debounce submits - $('input[type="submit"], button[type="submit"]').click(function() { + $('input[type="submit"], button[type="submit"]').not('.import, .export').click(function() { $(this).button('disable'); }); } diff --git a/lib/html_form.php b/lib/html_form.php index b86e77a89..ca776d253 100644 --- a/lib/html_form.php +++ b/lib/html_form.php @@ -1108,7 +1108,7 @@ function form_save_button($cancel_url, $force_type = '', $key_field = 'id', $aja - +