From: Florian Eckert Date: Thu, 17 Jun 2021 10:26:24 +0000 (+0200) Subject: luci-app-nlbwmon: change force reload html element to button X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=d6443a629362f7ed79d1212cd964e5d6a127a9c0;p=project%2Fluci.git luci-app-nlbwmon: change force reload html element to button Signed-off-by: Florian Eckert --- 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 b7455c2035..029e195242 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 @@ -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…')) ]));