From: Jo-Philipp Wich Date: Thu, 22 Nov 2018 07:57:09 +0000 (+0100) Subject: luci-app-opkg: allow presetting filter via query attribute X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=14487071db51d4fce258ba5d2531f390ab85fe1a;p=oweals%2Fluci.git luci-app-opkg: allow presetting filter via query attribute Signed-off-by: Jo-Philipp Wich --- diff --git a/applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js b/applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js index c2fe2d9fa..274a98292 100644 --- a/applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js +++ b/applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js @@ -793,7 +793,7 @@ window.requestAnimationFrame(function() { var filter = document.querySelector('input[name="filter"]'), keyTimeout = null; - filter.value = ''; + filter.value = filter.getAttribute('value'); filter.addEventListener('keyup', function(ev) { if (keyTimeout !== null) diff --git a/applications/luci-app-opkg/luasrc/view/opkg.htm b/applications/luci-app-opkg/luasrc/view/opkg.htm index 76b3f99ae..0d2a4e292 100644 --- a/applications/luci-app-opkg/luasrc/view/opkg.htm +++ b/applications/luci-app-opkg/luasrc/view/opkg.htm @@ -93,7 +93,7 @@
-