diff options
author | Henry Pan <git@phy25.com> | 2020-02-26 19:05:39 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-26 19:05:39 -0500 |
commit | ef401fdcd7e0d8a14fdf4306b1f650529b51b1ee (patch) | |
tree | 1d1209e690e9cac1899b42ef464f56f5345334e6 /lib/scripts/page.js | |
parent | 6cb645bfb16d8eff5581621f5182fb8025e8182f (diff) | |
parent | 050990ca534058e4afb63946bd6b4e5386c3806a (diff) | |
download | dokuwiki-ef401fdcd7e0d8a14fdf4306b1f650529b51b1ee.tar.gz dokuwiki-ef401fdcd7e0d8a14fdf4306b1f650529b51b1ee.zip |
Merge pull request #2989 from splitbrain/jquery-migrate-3.1
jquery-migrate: replace on()/trigger() shorthand and use prop() for disabled attr
Diffstat (limited to 'lib/scripts/page.js')
-rw-r--r-- | lib/scripts/page.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/scripts/page.js b/lib/scripts/page.js index 2332af4de..284c2038b 100644 --- a/lib/scripts/page.js +++ b/lib/scripts/page.js @@ -9,7 +9,7 @@ dw_page = { */ init: function(){ dw_page.sectionHighlight(); - jQuery('a.fn_top').mouseover(dw_page.footnoteDisplay); + jQuery('a.fn_top').on('mouseover', dw_page.footnoteDisplay); dw_page.makeToggle('#dw__toc h3','#dw__toc > div'); }, @@ -20,7 +20,7 @@ dw_page = { */ sectionHighlight: function() { jQuery('form.btn_secedit') - .mouseover(function(){ + .on('mouseover', function(){ var $tgt = jQuery(this).parent(), nr = $tgt.attr('class').match(/(\s+|^)editbutton_(\d+)(\s+|$)/)[2], $highlight = jQuery(), // holder for elements in the section to be highlighted @@ -36,7 +36,7 @@ dw_page = { // and move the elements to be highlighted inside the section highlight wrapper $highlight.detach().appendTo($highlightWrap); }) - .mouseout(function(){ + .on('mouseout', function(){ // find the section highlight wrapper... var $highlightWrap = jQuery('.section_highlight'); // ...move its children in front of it (as siblings)... @@ -63,7 +63,7 @@ dw_page = { .attr('id', popup_id) .addClass('insitu-footnote JSpopup') .attr('aria-hidden', 'true') - .mouseleave(function () {jQuery(this).hide().attr('aria-hidden', 'true');}) + .on('mouseleave', function () {jQuery(this).hide().attr('aria-hidden', 'true');}) .attr('role', 'tooltip'); jQuery('.dokuwiki:first').append($fndiv); } @@ -179,7 +179,7 @@ dw_page = { // click function $handle.css('cursor','pointer') - .click($handle[0].setState) + .on('click', $handle[0].setState) .prepend($clicky); // initial state |