Merge pull request #1163 from dibdot/luci-app-travelmate
authorHannu Nyman <hannu.nyman@iki.fi>
Wed, 10 May 2017 15:12:38 +0000 (18:12 +0300)
committerGitHub <noreply@github.com>
Wed, 10 May 2017 15:12:38 +0000 (18:12 +0300)
luci-app-travelmate: sync with travelmate 0.7.3

applications/luci-app-travelmate/luasrc/model/cbi/travelmate/overview_tab.lua

index 6b07aab..236bbb0 100644 (file)
@@ -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")