diff options
author | Andreas Gohr <andi@splitbrain.org> | 2016-11-26 11:45:59 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2016-11-26 11:45:59 +0100 |
commit | 0a1c13c92d15be092eb02ef8725de246fd94d52b (patch) | |
tree | d25bca567c0caf6039c8697d5da87eae5d2813a0 /lib/scripts | |
parent | 5170fe9966e28e9377cd886689693f8195423208 (diff) | |
download | dokuwiki-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')
-rw-r--r-- | lib/scripts/editor.js | 8 | ||||
-rw-r--r-- | lib/scripts/media.js | 10 |
2 files changed, 1 insertions, 17 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); }, diff --git a/lib/scripts/media.js b/lib/scripts/media.js index ce8b8a398..89925d8c8 100644 --- a/lib/scripts/media.js +++ b/lib/scripts/media.js @@ -518,16 +518,6 @@ var dw_mediamanager = { // set width of file panel $filePanel.width(relWidthNonResizable + '%'); - // FIXME: please fix without browser sniffing - if (!jQuery.browser.webkit) { - $resizables.each(function () { - var w = jQuery(this).width(); - w = (99.99 * w / widthFull); - w += "%"; - jQuery(this).width(w); - }); - } - dw_mediamanager.resize(); dw_mediamanager.opacity_slider(); |