diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2011-10-15 03:13:49 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2011-10-15 03:13:49 +0000 |
commit | 64bc95cb473e348c15add5bd6a36b2be087c2a56 (patch) | |
tree | f078c02358599b202321fba1c2c29de76238a9e9 /modules/admin-full/luasrc/controller/admin/system.lua | |
parent | f83cdb1b8bff33f47867af8941d4aabcda1575f4 (diff) |
modules/admin-full: make software page tabbed, show available list broken down by letters; greatly speeds up loading time
Diffstat (limited to 'modules/admin-full/luasrc/controller/admin/system.lua')
-rw-r--r-- | modules/admin-full/luasrc/controller/admin/system.lua | 9 |
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, |