summaryrefslogtreecommitdiffhomepage
path: root/modules/admin-full/luasrc/controller
diff options
context:
space:
mode:
Diffstat (limited to 'modules/admin-full/luasrc/controller')
-rw-r--r--modules/admin-full/luasrc/controller/admin/system.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/admin-full/luasrc/controller/admin/system.lua b/modules/admin-full/luasrc/controller/admin/system.lua
index f5b6b1493c..d948f28202 100644
--- a/modules/admin-full/luasrc/controller/admin/system.lua
+++ b/modules/admin-full/luasrc/controller/admin/system.lua
@@ -52,6 +52,13 @@ function action_packages()
local stderr = { "" }
local out, err
+ -- Display
+ local display = luci.http.formvalue("display") or "installed"
+
+ -- Letter
+ local letter = string.byte(luci.http.formvalue("letter") or "A", 1)
+ letter = (letter == 35 or (letter >= 65 and letter <= 90)) and letter or 65
+
-- Search query
local query = luci.http.formvalue("query")
query = (query ~= '') and query or nil
@@ -111,6 +118,8 @@ function action_packages()
luci.template.render("admin_system/packages", {
+ display = display,
+ letter = letter,
query = query,
install = install,
remove = remove,