Commit 5a5df6df authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Cancel upload button no longer required

parent 739de1a4
......@@ -29,7 +29,6 @@ function FileBrowser(idprefix, folderid, config, globalconfig) {
this.upload_init = function () {
if ($(self.id + '_notice')) {
setNodeAttribute(self.id + '_userfile', 'disabled', true);
addElementClass(self.id + '_uploadcancel', 'hidden');
}
if (!$(self.id + '_upload')) {
appendChildNodes(self.form, INPUT({
......@@ -53,13 +52,6 @@ function FileBrowser(idprefix, folderid, config, globalconfig) {
setNodeAttribute(self.id + '_userfile', 'disabled', true);
}
});
connect(self.id + '_uploadcancel', 'onclick', function () {
removeElementClass(self.id + '_openbutton', 'hidden');
addElementClass(self.id + '_agreement', 'hidden');
$(self.id + '_notice').checked = false;
setNodeAttribute(self.id + '_userfile', 'disabled', true);
addElementClass(this, 'hidden');
});
}
connect(self.id + '_userfile', 'onchange', self.upload_submit);
}
......@@ -468,4 +460,4 @@ function fileattached(filename) {
function fileattached_id(id) {
return some(attached.tbody.childNodes, function (r) { return getNodeAttribute(r,'id') == id; });
}
*/
\ No newline at end of file
*/
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