Do not give errors on succesful uploads.

This commit is contained in:
Nicolas Stepien 2011-11-27 22:06:23 +01:00
parent 024a6a6891
commit a8b2b99983
2 changed files with 2 additions and 2 deletions

View File

@ -1560,7 +1560,7 @@
$('iframe[name=iframe]').src = 'about:blank';
fileCount = $('#files', qr.el).childElementCount;
tc = data.textContent;
if (tc !== "Post successful!") {
if (tc !== "Post successful!" && !/uploaded!$/.test(tc)) {
if (tc === void 0) {
data.textContent = "Connection error with sys.4chan.org.";
}

View File

@ -1196,7 +1196,7 @@ qr =
fileCount = $('#files', qr.el).childElementCount
tc = data.textContent
if tc isnt "Post successful!" # error message
if tc isnt "Post successful!" and not /uploaded!$/.test tc # error message
if tc is undefined
data.textContent = "Connection error with sys.4chan.org."
$.extend $('#error', qr.el), data