From f83e68bea0f2590980a3befe5bc219209a7cf9a0 Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Fri, 7 Jun 2024 09:45:25 +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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/luci-base/htdocs/luci-static/resources/ui.js b/modules/luci-base/htdocs/luci-static/resources/ui.js index 78a6d1a86f..aef84fad80 100644 --- a/modules/luci-base/htdocs/luci-static/resources/ui.js +++ b/modules/luci-base/htdocs/luci-static/resources/ui.js @@ -4234,7 +4234,7 @@ var UI = baseclass.extend(/** @lends LuCI.ui.prototype */ { upload.focus(); } }), - E('button', { + E('div', { 'class': 'btn cbi-button', 'click': function(ev) { ev.target.previousElementSibling.click(); @@ -4242,7 +4242,7 @@ var UI = baseclass.extend(/** @lends LuCI.ui.prototype */ { }, [ _('Browse…') ]) ]), E('div', { 'class': 'right', 'style': 'flex:1' }, [ - E('button', { + E('div', { 'class': 'btn cbi-button', 'click': function() { UI.prototype.hideModal(); @@ -4250,7 +4250,7 @@ var UI = baseclass.extend(/** @lends LuCI.ui.prototype */ { } }, [ _('Cancel') ]), ' ', - E('button', { + E('div', { 'class': 'btn cbi-button-action important', 'disabled': true, 'click': function(ev) { -- 2.30.2