]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
trac831 disables status_form input submit onsubmit
authorcsarven <csarven@controlyourself.ca>
Mon, 1 Dec 2008 17:50:28 +0000 (12:50 -0500)
committercsarven <csarven@controlyourself.ca>
Mon, 1 Dec 2008 17:50:28 +0000 (12:50 -0500)
darcs-hash:20081201175028-eefa4-f67a2bd15bf052d62c36b1ff666f37ca98983f31.gz

js/util.js
theme/default/display.css

index 601218844199ff6b6b682b963f8aa256770a3dd4..dfb3eec5d9062dc3f898b332d5acd3feda776a1d 100644 (file)
@@ -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);
index 7c90fc28cb4b1607ca37a27f3368ba5160979de2..52e97d51dfab2aacf3adbd24a2b365be16c0d361 100644 (file)
@@ -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;