From 4440b00b2b732923bb1092082980856e35bb4f5e Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Fri, 7 Jun 2024 09:37:11 +0200 Subject: [PATCH] luci-base: replace button tag with div tag in ui.js Signed-off-by: Florian Eckert --- modules/luci-base/htdocs/luci-static/resources/ui.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/luci-base/htdocs/luci-static/resources/ui.js b/modules/luci-base/htdocs/luci-static/resources/ui.js index 99bfb8052f..4170ac366f 100644 --- a/modules/luci-base/htdocs/luci-static/resources/ui.js +++ b/modules/luci-base/htdocs/luci-static/resources/ui.js @@ -4482,7 +4482,7 @@ var UI = baseclass.extend(/** @lends LuCI.ui.prototype */ { E('var', {}, E('del', ' ')), ' ', _('Option removed') ])]), E('br'), list, E('div', { 'class': 'right' }, [ - E('button', { + E('div', { 'class': 'btn cbi-button', 'click': UI.prototype.hideModal }, [ _('Close') ]), ' ', @@ -4496,7 +4496,7 @@ var UI = baseclass.extend(/** @lends LuCI.ui.prototype */ { }, click: L.bind(function(ev, mode) { this.apply(mode == '0') }, this) }).render(), ' ', - E('button', { + E('div', { 'class': 'btn cbi-button cbi-button-reset', 'click': L.bind(this.revert, this) }, [ _('Revert') ])])]) -- 2.30.2