From d55318eaed51af23b59fc60de58b55070c48d0b9 Mon Sep 17 00:00:00 2001 From: csarven Date: Mon, 1 Dec 2008 12:50:28 -0500 Subject: [PATCH] trac831 disables status_form input submit onsubmit darcs-hash:20081201175028-eefa4-f67a2bd15bf052d62c36b1ff666f37ca98983f31.gz --- js/util.js | 4 ++++ theme/default/display.css | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/js/util.js b/js/util.js index 6012188441..dfb3eec5d9 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); diff --git a/theme/default/display.css b/theme/default/display.css index 7c90fc28cb..52e97d51df 100644 --- a/theme/default/display.css +++ b/theme/default/display.css @@ -252,6 +252,12 @@ font-size:14px; } +#wrap form input.disabled, +#wrap form input.disabled:hover { +background-color:#999; +cursor:default; +} + /* ----- Nav Footer ----- */ #nav_sub { clear: both;