diff options
Diffstat (limited to 'applications')
-rw-r--r-- | applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js | 2 | ||||
-rw-r--r-- | applications/luci-app-opkg/luasrc/view/opkg.htm | 2 |
2 files changed, 2 insertions, 2 deletions
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 c2fe2d9fa9..274a982929 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 76b3f99ae7..0d2a4e2920 100644 --- a/applications/luci-app-opkg/luasrc/view/opkg.htm +++ b/applications/luci-app-opkg/luasrc/view/opkg.htm @@ -93,7 +93,7 @@ <div> <label><%:Filter%>:</label> - <input type="text" name="filter" placeholder="<%:Type to filter…%>" /><!-- + <input type="text" name="filter" placeholder="<%:Type to filter…%>"<%=attr("value", luci.http.formvalue("query") or "")%> /><!-- --><button class="btn cbi-button" onclick="handleReset(event)"><%:Clear%></button> </div> |