Processing indicator (aka spinner thingy) for form_notice submits

This commit is contained in:
Sarven Capadisli 2009-03-25 22:53:21 +00:00
parent a7d8f7197e
commit 90e5f01f8a
3 changed files with 7 additions and 1 deletions

View File

@ -161,6 +161,7 @@ $(document).ready(function(){
$("#form_notice").addClass("warning"); $("#form_notice").addClass("warning");
return false; return false;
} }
$("#form_notice").addClass("processing");
$("#notice_action-submit").attr("disabled", "disabled"); $("#notice_action-submit").attr("disabled", "disabled");
$("#notice_action-submit").addClass("disabled"); $("#notice_action-submit").addClass("disabled");
return true; return true;
@ -179,6 +180,7 @@ $(document).ready(function(){
NoticeHover(); NoticeHover();
NoticeReply(); NoticeReply();
} }
$("#form_notice").removeClass("processing");
$("#notice_action-submit").removeAttr("disabled"); $("#notice_action-submit").removeAttr("disabled");
$("#notice_action-submit").removeClass("disabled"); $("#notice_action-submit").removeClass("disabled");
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 673 B

View File

@ -94,7 +94,11 @@ color:#333;
#form_notice.warning #notice_text-count { #form_notice.warning #notice_text-count {
color:#000; color:#000;
} }
#form_notice.processing #notice_action-submit {
background:#fff url(../../base/images/icons/icon_processing.gif) no-repeat 47% 47%;
cursor:wait;
text-indent:-9999px;
}
#nav_register a { #nav_register a {
text-decoration:none; text-decoration:none;