diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2009-06-10 09:08:41 -0700 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2009-06-10 09:08:41 -0700 |
commit | 1a077b0a7fa699302d7ff2ff59feb118d5653c15 (patch) | |
tree | 464b70ab8503e818432209992c781f9e76ad3b50 /js | |
parent | f4a1cd75ab6ee5cdc86491b5dc4f652fdd2ffa13 (diff) | |
parent | d9e5cda35d466ac1a428fffb72cc142922d4c211 (diff) |
Merge branch '0.7.x' of git@gitorious.org:+laconica-developers/laconica/dev into 0.7.x
Diffstat (limited to 'js')
-rw-r--r-- | js/util.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/js/util.js b/js/util.js index 763c7d7ee..23abba6c2 100644 --- a/js/util.js +++ b/js/util.js @@ -178,10 +178,14 @@ $(document).ready(function(){ $('#form_notice').append(document._importNode($(".error", xhr.responseXML).get(0), true)); } else { - var HTTP20x30x = new Array(200, 201, 202, 203, 204, 205, 206, 300, 301, 302, 303, 304, 305, 306, 307); + var HTTP20x30x = [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(); + } } } }, |