X-Git-Url: http://git.archive.openwrt.org/?a=blobdiff_plain;f=applications%2Fluci-freifunk-widgets%2Fluasrc%2Fmodel%2Fcbi%2Ffreifunk%2Fwidgets%2Fsearch.lua;fp=applications%2Fluci-freifunk-widgets%2Fluasrc%2Fmodel%2Fcbi%2Ffreifunk%2Fwidgets%2Fsearch.lua;h=4d861c5a091a5bce754df80bb408747ec26a3548;hb=745920eb08b63944ea03cb140dbe4033d7467973;hp=0000000000000000000000000000000000000000;hpb=2ad8d7fe61697bdeb9dc9ca421c9149c9ec33917;p=project%2Fluci.git diff --git a/applications/luci-freifunk-widgets/luasrc/model/cbi/freifunk/widgets/search.lua b/applications/luci-freifunk-widgets/luasrc/model/cbi/freifunk/widgets/search.lua new file mode 100644 index 000000000..4d861c5a0 --- /dev/null +++ b/applications/luci-freifunk-widgets/luasrc/model/cbi/freifunk/widgets/search.lua @@ -0,0 +1,12 @@ +local map, section = ... +local utl = require "luci.util" + +local form, ferr = loadfile(utl.libpath() .. "/model/cbi/freifunk/widgets/heightwidth.lua") +if form then + setfenv(form, getfenv(1))(m, wdg) +end + +local engine = wdg:option(DynamicList, "engine", translate("Search Engine"), + translate("Use the form Name|URL, where URL must be a full URL to the search engine " .. + "including the query GET parameter, e.g. 'Google|http://www.google.de/search?q='") + )