From: Florian Eckert Date: Fri, 7 Jun 2024 07:45:25 +0000 (+0200) Subject: luci-base: replace button tag with div tag in ui.js X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=f83e68bea0f2590980a3befe5bc219209a7cf9a0;p=project%2Fluci.git luci-base: replace button tag with div tag in ui.js Signed-off-by: Florian Eckert --- 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) {