From 76b3af64c038905ddcc1c511b99c65e3c4879bbc Mon Sep 17 00:00:00 2001 From: Dirk Brenken Date: Wed, 10 May 2017 16:56:58 +0200 Subject: 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 --- .../luci-app-travelmate/luasrc/model/cbi/travelmate/overview_tab.lua | 5 +++++ 1 file changed, 5 insertions(+) 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 6b07aabaed..236bbb0de5 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"), .. "" .. "see online documentation", "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") -- cgit v1.2.3