diff options
author | Phy <git@phy25.com> | 2020-02-23 23:22:29 -0500 |
---|---|---|
committer | Phy <git@phy25.com> | 2020-02-23 23:22:29 -0500 |
commit | 050990ca534058e4afb63946bd6b4e5386c3806a (patch) | |
tree | 1d1209e690e9cac1899b42ef464f56f5345334e6 /lib/scripts/qsearch.js | |
parent | 6cb645bfb16d8eff5581621f5182fb8025e8182f (diff) | |
download | dokuwiki-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/qsearch.js')
-rw-r--r-- | lib/scripts/qsearch.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/scripts/qsearch.js b/lib/scripts/qsearch.js index 18e51506c..f95515b93 100644 --- a/lib/scripts/qsearch.js +++ b/lib/scripts/qsearch.js @@ -57,7 +57,7 @@ jQuery.fn.dw_qsearch = function (overrides) { ); }; - dw_qsearch.$inObj.keyup( + dw_qsearch.$inObj.on('keyup', function () { if (dw_qsearch.timer) { window.clearTimeout(dw_qsearch.timer); @@ -68,7 +68,7 @@ jQuery.fn.dw_qsearch = function (overrides) { ); // attach eventhandler to output field - dw_qsearch.$outObj.click(dw_qsearch.clear_results); + dw_qsearch.$outObj.on('click', dw_qsearch.clear_results); }, /** |