]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Revert "Clearing notice_data-test and resetting notice_text-count if the notice XHR"
authorSarven Capadisli <csarven@controlyourself.ca>
Mon, 8 Jun 2009 20:50:13 +0000 (20:50 +0000)
committerSarven Capadisli <csarven@controlyourself.ca>
Mon, 8 Jun 2009 20:50:13 +0000 (20:50 +0000)
This reverts commit b20ac7a1fefe40e82b086df3128f06770c8b550d.

js/util.js

index b59018fe5c0cd283f9826461f25b57528e145c18..763c7d7ee389e8ef11eaba6e7fee2d422471cbd5 100644 (file)
@@ -167,7 +167,6 @@ $(document).ready(function(){
                                                                                                                                                   return true;
                                                                                                                                                 },
                                           timeout: '60000',
-                                          url: 'http://dev.controlyourself.ca/csarven/asdfasdfasdfasdf',
                                           error: function (xhr, textStatus, errorThrown) {     $("#form_notice").removeClass("processing");
                                                                                                                                                $("#notice_action-submit").removeAttr("disabled");
                                                                                                                                                $("#notice_action-submit").removeClass("disabled");
@@ -179,14 +178,10 @@ $(document).ready(function(){
                                                                                                                                                                $('#form_notice').append(document._importNode($(".error", xhr.responseXML).get(0), true));
                                                                                                                                                        }
                                                                                                                                                        else {
-                                                                                                                                                               var HTTP20x30x = [200, 404, 201, 202, 203, 204, 205, 206, 300, 301, 302, 303, 304, 305, 306, 307];
+                                                                                                                                                               var HTTP20x30x = new Array(200, 201, 202, 203, 204, 205, 206, 300, 301, 302, 303, 304, 305, 306, 307);
                                                                                                                                                                if(jQuery.inArray(parseInt(xhr.status), HTTP20x30x) < 0) {
                                                                                                                                                                        alert("Sorry! We had trouble sending your notice ("+xhr.status+" "+xhr.statusText+"). Please report the problem to the site administrator if this happens again.");
                                                                                                                                                                }
-                                                                                                                                                               else {
-                                                                                                                                                                       $("#notice_data-text").val("");
-                                                                                                                                                                       counter();
-                                                                                                                                                               }
                                                                                                                                                        }
                                                                                                                                                }
                                                                                                                                          },