Do not give errors on succesful uploads.
This commit is contained in:
parent
024a6a6891
commit
a8b2b99983
@ -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.";
|
||||
}
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user