From 1508b3780dff32ac878d20ebb1d41ebfc27c5909 Mon Sep 17 00:00:00 2001 From: Guillaume Mazoyer Date: Tue, 3 Jun 2014 09:46:18 +0200 Subject: Disable form elements when the form is submitted. --- includes/utils.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'includes/utils.js') diff --git a/includes/utils.js b/includes/utils.js index 3bcde51..e2b0a6f 100644 --- a/includes/utils.js +++ b/includes/utils.js @@ -5,17 +5,14 @@ $(function() { // show and hide loading bar $(document).ajaxStart(function() { + $('#command_properties').attr('disabled', ''); $('.loading').show(); }); $(document).ajaxStop(function() { + $('#command_properties').removeAttr('disabled'); $('.loading').hide(); }); - // validate the parameters field - $('#input-params').on('input', function() { - var cmd = $('#query').val(); - }); - // reset the view to the default one $('#backhome').click(function() { $('.content').slideDown(); -- cgit v1.2.3