diff options
Diffstat (limited to 'applications/luci-app-simple-adblock/luasrc')
-rw-r--r-- | applications/luci-app-simple-adblock/luasrc/controller/simpleadblock.lua | 7 | ||||
-rw-r--r-- | applications/luci-app-simple-adblock/luasrc/model/cbi/simple-adblock.lua | 6 |
2 files changed, 3 insertions, 10 deletions
diff --git a/applications/luci-app-simple-adblock/luasrc/controller/simpleadblock.lua b/applications/luci-app-simple-adblock/luasrc/controller/simpleadblock.lua deleted file mode 100644 index 46125b3098..0000000000 --- a/applications/luci-app-simple-adblock/luasrc/controller/simpleadblock.lua +++ /dev/null @@ -1,7 +0,0 @@ -module("luci.controller.simpleadblock", package.seeall) -function index() - if not nixio.fs.access("/etc/config/simple-adblock") then - return - end - entry({"admin", "services", "simpleadblock"}, cbi("simpleadblock"), _("Simple AdBlock")) -end diff --git a/applications/luci-app-simple-adblock/luasrc/model/cbi/simple-adblock.lua b/applications/luci-app-simple-adblock/luasrc/model/cbi/simple-adblock.lua index aa62ff56c0..4dbb21c6ed 100644 --- a/applications/luci-app-simple-adblock/luasrc/model/cbi/simple-adblock.lua +++ b/applications/luci-app-simple-adblock/luasrc/model/cbi/simple-adblock.lua @@ -24,7 +24,7 @@ else if enabledFlag ~= "1" or status:match("Stopped") then en.title = translate("Service is disabled/stopped") en.inputtitle = translate("Enable/Start") - en.inputstyle = "apply" + en.inputstyle = "apply important" if nixio.fs.access("/var/simple-adblock.cache") then ds = h:option(DummyValue, "_dummy", translate("Service Status")) ds.template = "simple-adblock/status" @@ -33,7 +33,7 @@ else else en.title = translate("Service is enabled/started") en.inputtitle = translate("Stop/Disable") - en.inputstyle = "reset" + en.inputstyle = "reset important" ds = h:option(DummyValue, "_dummy", translate("Service Status")) ds.template = "simple-adblock/status" ds.value = status @@ -41,7 +41,7 @@ else reload = h:option(Button, "__reload") reload.title = translate("Service started with error") reload.inputtitle = translate("Reload") - reload.inputstyle = "apply" + reload.inputstyle = "apply important" function reload.write() luci.sys.exec("/etc/init.d/simple-adblock reload") luci.http.redirect(luci.dispatcher.build_url("admin/services/" .. packageName)) |