diff options
author | Andreas Gohr <andi@splitbrain.org> | 2016-11-26 11:26:12 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2016-11-26 11:26:12 +0100 |
commit | 5170fe9966e28e9377cd886689693f8195423208 (patch) | |
tree | f146d8f18b9cec84b1ef04724370ad5fb3d55122 /lib/scripts/toolbar.js | |
parent | 568cdecd0ba305fe933f10c97c3448d16ef2e4ca (diff) | |
download | dokuwiki-5170fe9966e28e9377cd886689693f8195423208.tar.gz dokuwiki-5170fe9966e28e9377cd886689693f8195423208.zip |
replace deprecated bind() calls
The bind() call is deprecated in jQuery 3. This replaces it with
the on() call.
Diffstat (limited to 'lib/scripts/toolbar.js')
-rw-r--r-- | lib/scripts/toolbar.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/scripts/toolbar.js b/lib/scripts/toolbar.js index a5f831ade..b766f8b85 100644 --- a/lib/scripts/toolbar.js +++ b/lib/scripts/toolbar.js @@ -44,7 +44,7 @@ function initToolbar(tbid,edid,tb, allowblock){ // type is a tb function -> assign it as onclick actionFunc = 'tb_'+val.type; if( jQuery.isFunction(window[actionFunc]) ){ - $btn.bind('click', bind(window[actionFunc],$btn,val,edid) ); + $btn.on('click', bind(window[actionFunc],$btn,val,edid) ); $toolbar.append($btn); return; } |