diff options
Diffstat (limited to 'lib/scripts')
-rw-r--r-- | lib/scripts/script.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/scripts/script.js b/lib/scripts/script.js index fd2679f01..8a5770f16 100644 --- a/lib/scripts/script.js +++ b/lib/scripts/script.js @@ -501,3 +501,20 @@ function cleanMsgArea(){ } } } + +/** + * Add the event handler to the actiondropdown + * + * @author Andreas Gohr <andi@splitbrain.org> + */ +addInitEvent(function(){ + var selector = $('action__selector'); + if(!selector) return; + + addEvent(selector,'change',function(e){ + this.form.submit(); + }); + + $('action__selectorbtn').style.display = 'none'; +}); + |