Commit 85e48056 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Don't display 'submit is not a function' error in IE on files page

parent a487b737
......@@ -13,7 +13,7 @@ function FileBrowser(idprefix, folderid, config, globalconfig) {
if (!self.form) {
alert('Filebrowser error 1');
}
if (typeof(self.form.submit) != 'function') {
if (self.config.select && typeof(self.form.submit) != 'function') {
alert('Filebrowser error 2'); // Rename your submit element to something other than "submit".
}
self.foldername = $(self.id + '_foldername').value;
......
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