Commit 6e30f218 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Allow removal of upload status message

parent 38a7a4e0
...@@ -405,8 +405,9 @@ function FileUploader(element, uploadscript, foldername, folderid, uploadcallbac ...@@ -405,8 +405,9 @@ function FileUploader(element, uploadscript, foldername, folderid, uploadcallbac
// Display upload status // Display upload status
insertSiblingNodesBefore(self.form, insertSiblingNodesBefore(self.form,
DIV({'id':'uploadstatusline'+self.nextupload}, IMG({'src':config.themeurl+'loading.gif'}), DIV({'id':'uploadstatusline'+self.nextupload},
get_string('uploadingfiletofolder',localname,self.foldername))); IMG({'src':config.themeurl+'loading.gif'}), ' ',
get_string('uploadingfiletofolder',localname,self.foldername)));
self.nextupload += 1; self.nextupload += 1;
return true; return true;
} }
...@@ -418,8 +419,12 @@ function FileUploader(element, uploadscript, foldername, folderid, uploadcallbac ...@@ -418,8 +419,12 @@ function FileUploader(element, uploadscript, foldername, folderid, uploadcallbac
else { else {
var image = 'failure.gif'; var image = 'failure.gif';
} }
replaceChildNodes($('uploadstatusline'+data.uploadnumber), replaceChildNodes($('uploadstatusline'+data.uploadnumber),
IMG({'src':config.themeurl+image}), data.message); IMG({'src':config.themeurl+image}), ' ',
data.message, ' ',
A({'style': 'cursor: pointer;',
'onclick':'removeElement(this.parentNode)'},'[X]'));
this.uploadcallback(data); this.uploadcallback(data);
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment