Commit 4a90d662 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Display an error when form submit button is called 'submit'

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