luci-app-nlbwmon: fix url
authorFlorian Eckert <fe@dev.tdt.de>
Wed, 16 Jun 2021 12:01:03 +0000 (14:01 +0200)
committerFlorian Eckert <fe@dev.tdt.de>
Thu, 17 Jun 2021 06:14:47 +0000 (08:14 +0200)
When moving this application to the service section, the links were
forgotten to be changed.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
applications/luci-app-nlbwmon/htdocs/luci-static/resources/view/nlbw/config.js
applications/luci-app-nlbwmon/htdocs/luci-static/resources/view/nlbw/display.js

index cb13eeccec7ba527200d48db653719302a6c2cd2..3f0a4c969f83d5376919cebc524d77aa501221b2 100644 (file)
@@ -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!<br /><strong><a href="%s">Download backup</a></strong>.').format(L.url('admin/nlbw/backup'));
+               o.default = _('Changing the accounting interval type will invalidate existing databases!<br /><strong><a href="%s">Download backup</a></strong>.').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');
index ccef949fb013e70d8fd1cfd6db8344cbdd5b2a34..b7455c203503646835ec107b476ccc23e59c0950 100644 (file)
@@ -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 = [];