]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Processing indicator (aka spinner thingy) for form_notice submits
authorSarven Capadisli <csarven@controlyourself.ca>
Wed, 25 Mar 2009 22:53:21 +0000 (22:53 +0000)
committerSarven Capadisli <csarven@controlyourself.ca>
Wed, 25 Mar 2009 22:53:21 +0000 (22:53 +0000)
js/util.js
theme/base/images/icons/icon_processing.gif [new file with mode: 0644]
theme/identica/css/display.css

index 3ad0386122c53891bda591b85f6ed767cb7796b0..81139744ff9cdab7eb928df3f2e83a5df5611562 100644 (file)
@@ -161,6 +161,7 @@ $(document).ready(function(){
                                                                                                                                                                $("#form_notice").addClass("warning");
                                                                                                                                                                return false;
                                                                                                                                                   }
+                                                                                                                                                  $("#form_notice").addClass("processing");
                                                                                                                                                   $("#notice_action-submit").attr("disabled", "disabled");
                                                                                                                                                   $("#notice_action-submit").addClass("disabled");
                                                                                                                                                   return true;
@@ -179,6 +180,7 @@ $(document).ready(function(){
                                                                                                        NoticeHover();
                                                                                                        NoticeReply();
                                                                                                }
+                                                                                               $("#form_notice").removeClass("processing");
                                                                                                $("#notice_action-submit").removeAttr("disabled");
                                                                                                $("#notice_action-submit").removeClass("disabled");
                                                                                         }
diff --git a/theme/base/images/icons/icon_processing.gif b/theme/base/images/icons/icon_processing.gif
new file mode 100644 (file)
index 0000000..d0bce15
Binary files /dev/null and b/theme/base/images/icons/icon_processing.gif differ
index 576a2e14be1d1483bc4da0abbeca81f97785af22..69be1162339b9085123a8a1b40f37b57b95db280 100644 (file)
@@ -94,7 +94,11 @@ color:#333;
 #form_notice.warning #notice_text-count {
 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 {
 text-decoration:none;