From df8c0f3e6f1ed6c443bb4e6be240f597161d4312 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Kr=C3=B6g?= Date: Sat, 15 Feb 2020 22:19:43 +0100 Subject: [PATCH] Avoid deprecated jquery :eq selector --- config/jsdoc/api/template/static/scripts/main.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/jsdoc/api/template/static/scripts/main.js b/config/jsdoc/api/template/static/scripts/main.js index fe68f8a6b2..50c8baaf6c 100644 --- a/config/jsdoc/api/template/static/scripts/main.js +++ b/config/jsdoc/api/template/static/scripts/main.js @@ -70,11 +70,11 @@ $(function () { .replace('module-', 'module:') .replace(/_/g, '/') .replace(/-/g, '~'); - const $currentItem = $navList.find('.item[data-longname="' + longname + '"]:eq(0)'); - $currentItem.prependTo($navList); + const currentItem = navListNode.querySelector('.item[data-longname="' + longname + '"]'); + $navList.prepend(currentItem); return { $navList: $navList, - $currentItem: $currentItem, + $currentItem: $(currentItem), lastSearchTerm: undefined, lastState: {}, getClassList: function () {