From: Florian Eckert Date: Fri, 19 Jul 2024 09:01:33 +0000 (+0200) Subject: luci-base: revert replacing button tags with div tags X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=e229e1a0e2a4a81e9a189a179cb380ccc90a9141;p=project%2Fluci.git luci-base: revert replacing button tags with div tags 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 7945833fe5..dec8f8aad3 100644 --- a/modules/luci-base/htdocs/luci-static/resources/ui.js +++ b/modules/luci-base/htdocs/luci-static/resources/ui.js @@ -4210,7 +4210,7 @@ var UI = baseclass.extend(/** @lends LuCI.ui.prototype */ { UI.prototype.showModal(_('Uploading file…'), [ E('p', _('Please select the file to upload.')), E('div', { 'class': 'button-row' }, [ - E('div', { + E('button', { 'class': 'btn cbi-button', 'click': function() { UI.prototype.hideModal(); @@ -4240,13 +4240,13 @@ var UI = baseclass.extend(/** @lends LuCI.ui.prototype */ { upload.focus(); } }), - E('div', { + E('button', { 'class': 'btn cbi-button', 'click': function(ev) { ev.target.previousElementSibling.click(); } }, [ _('Browse…') ]), - E('div', { + E('button', { 'class': 'btn cbi-button-action important', 'disabled': true, 'click': function(ev) { @@ -4479,7 +4479,7 @@ var UI = baseclass.extend(/** @lends LuCI.ui.prototype */ { list, ]), E('div', { 'class': 'button-row' }, [ - E('div', { + E('button', { 'class': 'btn cbi-button', 'click': UI.prototype.hideModal }, [ _('Close') ]), ' ', @@ -4493,7 +4493,7 @@ var UI = baseclass.extend(/** @lends LuCI.ui.prototype */ { }, click: L.bind(function(ev, mode) { this.apply(mode == '0') }, this) }).render(), ' ', - E('div', { + E('button', { 'class': 'btn cbi-button cbi-button-reset', 'click': L.bind(this.revert, this) }, [ _('Revert') ]) @@ -4732,15 +4732,15 @@ var UI = baseclass.extend(/** @lends LuCI.ui.prototype */ { E('h4', _('Connectivity change')), E('p', _('Changes have been made to the existing connection via "%h". This could inhibit access to this device. Any IP change requires connecting to the new IP within %d seconds to retain the changes.').format(affected, L.env.apply_rollback)), E('div', { 'class': 'button-row' }, [ - E('div', { + E('button', { 'class': 'btn cbi-button', 'click': rejectFn, }, [ _('Cancel') ]), ' ', - E('div', { + E('button', { 'class': 'btn cbi-button-action important', 'click': resolveFn.bind(null, true) }, [ _('Apply, reverting in case of connectivity loss') ]), ' ', - E('div', { + E('button', { 'class': 'btn cbi-button-negative important', 'click': resolveFn.bind(null, false) }, [ _('Apply unchecked') ])