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>
This commit is contained in:
parent
8d4fa96d8a
commit
76b3af64c0
1 changed files with 5 additions and 0 deletions
|
@ -16,6 +16,11 @@ m = Map("travelmate", translate("Travelmate"),
|
||||||
.. "<a href=\"%s\" target=\"_blank\">"
|
.. "<a href=\"%s\" target=\"_blank\">"
|
||||||
.. "see online documentation</a>", "https://github.com/openwrt/packages/blob/master/net/travelmate/files/README.md"))
|
.. "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
|
-- Main travelmate options
|
||||||
|
|
||||||
s = m:section(NamedSection, "global", "travelmate")
|
s = m:section(NamedSection, "global", "travelmate")
|
||||||
|
|
Loading…
Reference in a new issue