luci-app-nlbwmon: change force reload html element to button
authorFlorian Eckert <fe@dev.tdt.de>
Thu, 17 Jun 2021 10:26:24 +0000 (12:26 +0200)
committerFlorian Eckert <fe@dev.tdt.de>
Thu, 17 Jun 2021 10:26:24 +0000 (12:26 +0200)
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
applications/luci-app-nlbwmon/htdocs/luci-static/resources/view/nlbw/display.js

index b7455c203503646835ec107b476ccc23e59c0950..029e1952424d9f2b3684412e254bac3d6c4a1d33 100644 (file)
@@ -361,8 +361,8 @@ return view.extend({
 
                cbi_update_table('#host-data', rows, E('em', [
                        _('No data recorded yet.'), ' ',
-                       E('a', {
-                               'href': '#',
+                       E('button', {
+                               'class': 'cbi-button',
                                'click': ui.createHandlerFn(this, 'handleCommit')
                        }, _('Force reload…'))
                ]));
@@ -421,8 +421,8 @@ return view.extend({
 
                cbi_update_table('#layer7-data', rows, E('em', [
                        _('No data recorded yet.'), ' ',
-                       E('a', {
-                               'href': '#',
+                       E('button', {
+                               'class': 'cbi-button',
                                'click': ui.createHandlerFn(this, 'handleCommit')
                        }, _('Force reload…'))
                ]));
@@ -528,8 +528,8 @@ return view.extend({
 
                cbi_update_table('#ipv6-data', rows, E('em', [
                        _('No data recorded yet.'), ' ',
-                       E('a', {
-                               'href': '#',
+                       E('button', {
+                               'class': 'cbi-button',
                                'click': ui.createHandlerFn(this, 'handleCommit')
                        }, _('Force reload…'))
                ]));