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/edit.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/edit.js')
-rw-r--r-- | lib/scripts/edit.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/scripts/edit.js b/lib/scripts/edit.js index 579afd8f1..b3e97b63c 100644 --- a/lib/scripts/edit.js +++ b/lib/scripts/edit.js @@ -85,7 +85,7 @@ function createPicker(id,props,edid){ var $btn = jQuery(document.createElement('button')) .addClass('pickerbutton').attr('title', title) .attr('aria-controls', edid) - .bind('click', bind(pickerInsert, title, edid)) + .on('click', bind(pickerInsert, title, edid)) .appendTo($picker); return $btn; } @@ -141,7 +141,7 @@ function pickerInsert(text,edid){ */ function addBtnActionSignature($btn, props, edid) { if(typeof SIG != 'undefined' && SIG != ''){ - $btn.bind('click', function (e) { + $btn.on('click', function (e) { insertAtCarret(edid,SIG); e.preventDefault(); }); |