aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/lib/scripts/editor.js
diff options
context:
space:
mode:
authorPhy <git@phy25.com>2020-02-23 23:22:29 -0500
committerPhy <git@phy25.com>2020-02-23 23:22:29 -0500
commit050990ca534058e4afb63946bd6b4e5386c3806a (patch)
tree1d1209e690e9cac1899b42ef464f56f5345334e6 /lib/scripts/editor.js
parent6cb645bfb16d8eff5581621f5182fb8025e8182f (diff)
downloaddokuwiki-050990ca534058e4afb63946bd6b4e5386c3806a.tar.gz
dokuwiki-050990ca534058e4afb63946bd6b4e5386c3806a.zip
jquery-migrate: replace on()/trigger() shorthand and use prop() for disabled attr
Related to #1546.
Diffstat (limited to 'lib/scripts/editor.js')
-rw-r--r--lib/scripts/editor.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/scripts/editor.js b/lib/scripts/editor.js
index c9cb312b0..0df556172 100644
--- a/lib/scripts/editor.js
+++ b/lib/scripts/editor.js
@@ -60,7 +60,7 @@ var dw_editor = {
jQuery(document.createElement('img'))
.attr('src', DOKU_BASE+'lib/images/' + img[0] + '.gif')
.attr('alt', '')
- .click(img[1])
+ .on('click', img[1])
.appendTo($ctl);
});
},
@@ -140,7 +140,7 @@ var dw_editor = {
if((e.keyCode == 13 || e.keyCode == 10) && e.ctrlKey) { // Ctrl-Enter (With Chrome workaround)
// Submit current edit
- jQuery('#edbtn__save').click();
+ jQuery('#edbtn__save').trigger('click');
e.preventDefault(); // prevent enter key
return false;
}else if(e.keyCode == 13){ // Enter