summaryrefslogtreecommitdiff
path: root/includes/utils.js
diff options
context:
space:
mode:
authorGuillaume Mazoyer <respawneral@gmail.com>2014-06-03 09:46:18 +0200
committerGuillaume Mazoyer <respawneral@gmail.com>2014-06-03 09:46:18 +0200
commit1508b3780dff32ac878d20ebb1d41ebfc27c5909 (patch)
tree4c65b1dd384182e20d0217b31631e551ec7de3fd /includes/utils.js
parente6139ed2a2f518a2590124892406cfd688aff331 (diff)
Disable form elements when the form is submitted.
Diffstat (limited to 'includes/utils.js')
-rw-r--r--includes/utils.js7
1 files changed, 2 insertions, 5 deletions
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();