attach error message to text

This commit is contained in:
James Campos 2011-08-06 20:45:10 -07:00
parent 2a74af9b3b
commit d8f6deb447
2 changed files with 2 additions and 0 deletions

View File

@ -1342,6 +1342,7 @@
qr.autoPost();
}
} else if (data.textContent === 'Error: Duplicate file entry detected.' && qr.files.childElementCount) {
$('textarea', qr.el).value += '\n' + data.textContent + ' ' + data.href;
qr.attachNext();
if (qr.captcha.length) {
qr.autoPost();

View File

@ -1087,6 +1087,7 @@ qr =
if qr.captcha.length
qr.autoPost()
else if data.textContent is 'Error: Duplicate file entry detected.' and qr.files.childElementCount
$('textarea', qr.el).value += '\n' + data.textContent + ' ' + data.href
qr.attachNext()
if qr.captcha.length
qr.autoPost()