trac831 disables status_form input submit onsubmit
darcs-hash:20081201175028-eefa4-f67a2bd15bf052d62c36b1ff666f37ca98983f31.gz
This commit is contained in:
parent
412e3e27f2
commit
d55318eaed
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user