diff options
author | Andreas Gohr <andi@splitbrain.org> | 2020-08-13 19:48:45 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2020-08-13 19:48:45 +0200 |
commit | 70cc2cbf41ee65a6048aab5aab40e124b337e295 (patch) | |
tree | ba5465443598eeb25db763f29b07063766862851 /lib/scripts | |
parent | 5b784a2b834405d28627b116e3d44b7d16fc1840 (diff) | |
download | dokuwiki-70cc2cbf41ee65a6048aab5aab40e124b337e295.tar.gz dokuwiki-70cc2cbf41ee65a6048aab5aab40e124b337e295.zip |
added logviwer admin plugin
This allows for easy viewing of the available logs.
The log format was sligthly adjusted again for easier parsing.
Diffstat (limited to 'lib/scripts')
-rw-r--r-- | lib/scripts/behaviour.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/scripts/behaviour.js b/lib/scripts/behaviour.js index f9aad3d02..968d2dd5f 100644 --- a/lib/scripts/behaviour.js +++ b/lib/scripts/behaviour.js @@ -102,15 +102,18 @@ var dw_behaviour = { /** * Autosubmit quick select forms * - * When a <select> tag has the class "quickselect", this script will + * When a <select> or <input> tag has the class "quickselect", this script will * automatically submit its parent form when the select value changes. * It also hides the submit button of the form. * + * This includes a workaround a weird behaviour when the submit button has a name + * + * @link https://trackjs.com/blog/when-form-submit-is-not-a-function/ * @author Andreas Gohr <andi@splitbrain.org> */ quickSelect: function(){ - jQuery('select.quickselect') - .on('change', function(e){ e.target.form.submit(); }) + jQuery('.quickselect') + .change(function(e){ HTMLFormElement.prototype.submit.call(e.target.form); }) .closest('form').find(':button').not('.show').hide(); }, |