diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2015-10-07 19:07:36 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2015-10-07 19:07:36 +0200 |
commit | 281d2f617899a0c3a171a66c6a3a14e834aa000c (patch) | |
tree | 4b53f67e82b64bb506b3a219a29319b64d1c1ab2 /modules/luci-mod-admin-full/luasrc/view/admin_system/clock_status.htm | |
parent | 49a2cb5ad11ccc0225fd3fa1de4b85a0618bbb99 (diff) |
Globally replace luci.dispatcher.build_url(...) with url(...) invocations
Also concat multiple string arguments into one while we're at it.
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Diffstat (limited to 'modules/luci-mod-admin-full/luasrc/view/admin_system/clock_status.htm')
-rw-r--r-- | modules/luci-mod-admin-full/luasrc/view/admin_system/clock_status.htm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/luci-mod-admin-full/luasrc/view/admin_system/clock_status.htm b/modules/luci-mod-admin-full/luasrc/view/admin_system/clock_status.htm index 84e151075f..19be072fef 100644 --- a/modules/luci-mod-admin-full/luasrc/view/admin_system/clock_status.htm +++ b/modules/luci-mod-admin-full/luasrc/view/admin_system/clock_status.htm @@ -1,7 +1,7 @@ <%+cbi/valueheader%> <script type="text/javascript">//<![CDATA[ - XHR.poll(5, '<%=luci.dispatcher.build_url("admin", "system", "clock_status")%>', null, + XHR.poll(5, '<%=url('admin/system/clock_status')%>', null, function(x, rv) { var s = document.getElementById('<%=self.option%>-clock-status'); @@ -17,7 +17,7 @@ btn.disabled = true; btn.value = '<%:Synchronizing...%>'; - XHR.get('<%=luci.dispatcher.build_url("admin", "system", "clock_status")%>', + XHR.get('<%=url('admin/system/clock_status')%>', { set: Math.floor((new Date()).getTime() / 1000) }, function() { |