Commit 144adb0a authored by Nigel McNie's avatar Nigel McNie
Browse files

Prevent multipe 'show my tags' lines appearing when uploading more than one...

Prevent multipe 'show my tags' lines appearing when uploading more than one file in My Files. Fixes #2029
parent a83d5e38
...@@ -534,7 +534,7 @@ function FileUploader(element, uploadscript, statevars, foldername, folderid, up ...@@ -534,7 +534,7 @@ function FileUploader(element, uploadscript, statevars, foldername, folderid, up
self.form.userfile.value = ''; self.form.userfile.value = '';
self.form.title.value = ''; self.form.title.value = '';
self.form.description.value = ''; self.form.description.value = '';
swapDOM(self.form.tags.parentNode.parentNode.parentNode.parentNode, create_tags_control('tags')); swapDOM('tagcontrol-tags', create_tags_control('tags'));
hideElement(self.form.replace); hideElement(self.form.replace);
hideElement(self.form); hideElement(self.form);
showElement(self.openbutton); showElement(self.openbutton);
......
...@@ -589,7 +589,7 @@ function create_tags_control(name, value, options) { ...@@ -589,7 +589,7 @@ function create_tags_control(name, value, options) {
elements.push(augment_tags_control(tagControl, true)); elements.push(augment_tags_control(tagControl, true));
elements.push(TABLE({'class': 'help-wrapper'}, TBODY(null, TR(null, TD(null, tagControl), TD({'class': 'helpcontainer'}, tagshelp))))); elements.push(TABLE({'class': 'help-wrapper'}, TBODY(null, TR(null, TD(null, tagControl), TD({'class': 'helpcontainer'}, tagshelp)))));
return DIV(null, elements); return DIV({'id': 'tagcontrol-' + name}, elements);
} }
// this function takes an existing input element and augments it // this function takes an existing input element and augments it
......
Markdown is supported
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