summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-travelmate
diff options
context:
space:
mode:
authorDirk Brenken <dev@brenken.org>2017-05-10 16:56:58 +0200
committerDirk Brenken <dev@brenken.org>2017-05-10 16:56:58 +0200
commit76b3af64c038905ddcc1c511b99c65e3c4879bbc (patch)
tree4ad82045a38eeda141d5945007bccb6016b62872 /applications/luci-app-travelmate
parent8d4fa96d8a58bb3762cbfd116673a04a20aa680b (diff)
luci-app-travelmate: sync with travelmate 0.7.3
* Automatically refresh the overview page after button onclick event, e.g. 'Save & Apply' Signed-off-by: Dirk Brenken <dev@brenken.org>
Diffstat (limited to 'applications/luci-app-travelmate')
-rw-r--r--applications/luci-app-travelmate/luasrc/model/cbi/travelmate/overview_tab.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/applications/luci-app-travelmate/luasrc/model/cbi/travelmate/overview_tab.lua b/applications/luci-app-travelmate/luasrc/model/cbi/travelmate/overview_tab.lua
index 6b07aabae..236bbb0de 100644
--- a/applications/luci-app-travelmate/luasrc/model/cbi/travelmate/overview_tab.lua
+++ b/applications/luci-app-travelmate/luasrc/model/cbi/travelmate/overview_tab.lua
@@ -16,6 +16,11 @@ m = Map("travelmate", translate("Travelmate"),
.. "<a href=\"%s\" target=\"_blank\">"
.. "see online documentation</a>", "https://github.com/openwrt/packages/blob/master/net/travelmate/files/README.md"))
+function m.on_after_commit(self)
+ luci.sys.call("/etc/init.d/travelmate restart >/dev/null 2>&1")
+ luci.http.redirect(luci.dispatcher.build_url("admin", "services", "travelmate"))
+end
+
-- Main travelmate options
s = m:section(NamedSection, "global", "travelmate")