From: Steven Barth Date: Tue, 3 Jun 2008 18:02:53 +0000 (+0000) Subject: * libs/web: Added support for custom query strings X-Git-Tag: 0.8.0~901 X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=commitdiff_plain;h=56a23c609c30cf6c477bf6523661a44821da1819 * libs/web: Added support for custom query strings --- diff --git a/libs/web/luasrc/http.lua b/libs/web/luasrc/http.lua index fa8821c5a..68dad8f1e 100644 --- a/libs/web/luasrc/http.lua +++ b/libs/web/luasrc/http.lua @@ -33,4 +33,14 @@ if ENV and ENV.HASERLVER then require("luci.sgi.haserl") elseif webuci then require("luci.sgi.webuci") +end + +function build_querystring(table) + local s="?" + + for k, v in pairs(table) do + s = s .. k .. "=" .. v .. "&" + end + + return s end \ No newline at end of file diff --git a/themes/fledermaus/luasrc/view/themes/fledermaus/header.htm b/themes/fledermaus/luasrc/view/themes/fledermaus/header.htm index 99bd39924..cb378555f 100644 --- a/themes/fledermaus/luasrc/view/themes/fledermaus/header.htm +++ b/themes/fledermaus/luasrc/view/themes/fledermaus/header.htm @@ -73,9 +73,12 @@ local function submenu(prefix, node) %>