From 7a365183296f385bb8cb14b8eb6fcfc29941c7e4 Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Wed, 16 Jun 2021 14:01:03 +0200 Subject: [PATCH] luci-app-nlbwmon: fix url When moving this application to the service section, the links were forgotten to be changed. Signed-off-by: Florian Eckert --- .../htdocs/luci-static/resources/view/nlbw/config.js | 2 +- .../htdocs/luci-static/resources/view/nlbw/display.js | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/applications/luci-app-nlbwmon/htdocs/luci-static/resources/view/nlbw/config.js b/applications/luci-app-nlbwmon/htdocs/luci-static/resources/view/nlbw/config.js index cb13eeccec..3f0a4c969f 100644 --- a/applications/luci-app-nlbwmon/htdocs/luci-static/resources/view/nlbw/config.js +++ b/applications/luci-app-nlbwmon/htdocs/luci-static/resources/view/nlbw/config.js @@ -73,7 +73,7 @@ return view.extend({ o.value('absolute', _('Fixed interval')); o = s.taboption('general', form.DummyValue, '_warning', _('Warning')); - o.default = _('Changing the accounting interval type will invalidate existing databases!
Download backup.').format(L.url('admin/nlbw/backup')); + o.default = _('Changing the accounting interval type will invalidate existing databases!
Download backup.').format(L.url('admin/services/nlbw/backup')); o.rawhtml = true; if (/^[0-9]{4}-[0-9]{2}-[0-9]{2}\/[0-9]+$/.test(uci.get_first('nlbwmon', 'nlbwmon', 'database_interval'))) o.depends('_period', 'relative'); diff --git a/applications/luci-app-nlbwmon/htdocs/luci-static/resources/view/nlbw/display.js b/applications/luci-app-nlbwmon/htdocs/luci-static/resources/view/nlbw/display.js index ccef949fb0..b7455c2035 100644 --- a/applications/luci-app-nlbwmon/htdocs/luci-static/resources/view/nlbw/display.js +++ b/applications/luci-app-nlbwmon/htdocs/luci-static/resources/view/nlbw/display.js @@ -421,7 +421,10 @@ return view.extend({ cbi_update_table('#layer7-data', rows, E('em', [ _('No data recorded yet.'), ' ', - E('a', { 'href': L.url('admin/nlbw/commit') }, _('Force reload…')) + E('a', { + 'href': '#', + 'click': ui.createHandlerFn(this, 'handleCommit') + }, _('Force reload…')) ])); this.pie('layer7-rx-pie', rxData); @@ -525,7 +528,10 @@ return view.extend({ cbi_update_table('#ipv6-data', rows, E('em', [ _('No data recorded yet.'), ' ', - E('a', { 'href': L.url('admin/nlbw/commit') }, _('Force reload…')) + E('a', { + 'href': '#', + 'click': ui.createHandlerFn(this, 'handleCommit') + }, _('Force reload…')) ])); var shareData = [], hostsData = []; -- 2.30.2