summaryrefslogtreecommitdiff
path: root/js/util.js
diff options
context:
space:
mode:
authorcsarven <csarven@controlyourself.ca>2008-12-01 12:50:28 -0500
committercsarven <csarven@controlyourself.ca>2008-12-01 12:50:28 -0500
commitd55318eaed51af23b59fc60de58b55070c48d0b9 (patch)
treee90cee35c3efdea81a7f4c4dd2bc1327f434e279 /js/util.js
parent412e3e27f27dda1ec8a4dffb4117b526ca6cc9df (diff)
trac831 disables status_form input submit onsubmit
darcs-hash:20081201175028-eefa4-f67a2bd15bf052d62c36b1ff666f37ca98983f31.gz
Diffstat (limited to 'js/util.js')
-rw-r--r--js/util.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/js/util.js b/js/util.js
index 601218844..dfb3eec5d 100644
--- a/js/util.js
+++ b/js/util.js
@@ -126,6 +126,8 @@ $(document).ready(function(){
$("#status_form").addClass("response_error");
return false;
}
+ $("#status_form input[type=submit]").attr("disabled", "disabled");
+ $("#status_form input[type=submit]").addClass("disabled");
return true;
},
success: function(xml) { if ($(".error", xml).length > 0) {
@@ -140,6 +142,8 @@ $(document).ready(function(){
$(".notice_single:first").css({display:"none"});
$(".notice_single:first").fadeIn(2500);
}
+ $("#status_form input[type=submit]").removeAttr("disabled");
+ $("#status_form input[type=submit]").removeClass("disabled");
}
}
$("#status_form").ajaxForm(PostNotice);