aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/lib/scripts/editor.js
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2016-11-26 11:45:59 +0100
committerAndreas Gohr <andi@splitbrain.org>2016-11-26 11:45:59 +0100
commit0a1c13c92d15be092eb02ef8725de246fd94d52b (patch)
treed25bca567c0caf6039c8697d5da87eae5d2813a0 /lib/scripts/editor.js
parent5170fe9966e28e9377cd886689693f8195423208 (diff)
downloaddokuwiki-0a1c13c92d15be092eb02ef8725de246fd94d52b.tar.gz
dokuwiki-0a1c13c92d15be092eb02ef8725de246fd94d52b.zip
removed jQuery.browser calls
jQuery.browser no longer exists in jQuery nor in jQuery migrate. A quick check in Opera and IE11 suggests that both parts that used it are no longer needed so they were simply removed. More browser tests especially for the resize handling in the media manager are recommended.
Diffstat (limited to 'lib/scripts/editor.js')
-rw-r--r--lib/scripts/editor.js8
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/scripts/editor.js b/lib/scripts/editor.js
index fac084489..3aac6bfb5 100644
--- a/lib/scripts/editor.js
+++ b/lib/scripts/editor.js
@@ -25,13 +25,7 @@ var dw_editor = {
return;
}
- // in Firefox, keypress doesn't send the correct keycodes,
- // in Opera, the default of keydown can't be prevented
- if (jQuery.browser.opera) {
- $editor.keypress(dw_editor.keyHandler);
- } else {
- $editor.keydown(dw_editor.keyHandler);
- }
+ $editor.keydown(dw_editor.keyHandler);
},