luci-base: replace css class right with css class button-row
authorFlorian Eckert <[email protected]>
Fri, 7 Jun 2024 10:52:13 +0000 (12:52 +0200)
committerFlorian Eckert <[email protected]>
Tue, 9 Jul 2024 14:19:51 +0000 (16:19 +0200)
Signed-off-by: Florian Eckert <[email protected]>
modules/luci-base/htdocs/luci-static/resources/form.js
modules/luci-base/htdocs/luci-static/resources/ui.js

index 6b0e30d118b4679fa09357302e5da224eb92e832..c6d2445a5583feb253b40be2bd18c77c320269e9 100644 (file)
@@ -3218,7 +3218,7 @@ var CBITableSection = CBITypedSection.extend(/** @lends LuCI.form.TableSection.p
                                else {
                                        ui.showModal(title, [
                                                nodes,
-                                               E('div', { 'class': 'right' }, [
+                                               E('div', { 'class': 'button-row' }, [
                                                        E('button', {
                                                                'class': 'btn cbi-button',
                                                                'click': ui.createHandlerFn(this, 'handleModalCancel', m)
index 2ee5fbe704e5568152f55902f138bbf19dca595b..372b6c3c80442e10d465293d746b09a8bd4a34d0 100644 (file)
@@ -3626,7 +3626,7 @@ var UI = baseclass.extend(/** @lends LuCI.ui.prototype */ {
        /** @private */
        cancelModal: function(ev) {
                if (ev.key == 'Escape') {
-                       var btn = modalDiv.querySelector('.right > button, .right > .btn');
+                       var btn = modalDiv.querySelector('.right > button, .right > .btn, .button-row > .btn');
 
                        if (btn)
                                btn.click();
@@ -4209,7 +4209,7 @@ var UI = baseclass.extend(/** @lends LuCI.ui.prototype */ {
                return new Promise(function(resolveFn, rejectFn) {
                        UI.prototype.showModal(_('Uploading file…'), [
                                E('p', _('Please select the file to upload.')),
-                               E('div', { 'class': 'right' }, [
+                               E('div', { 'class': 'button-row' }, [
                                        E('div', {
                                                'class': 'btn cbi-button',
                                                'click': function() {
@@ -4478,7 +4478,7 @@ var UI = baseclass.extend(/** @lends LuCI.ui.prototype */ {
                                        E('br'),
                                        list,
                                ]),
-                               E('div', { 'class': 'right' }, [
+                               E('div', { 'class': 'button-row' }, [
                                        E('div', {
                                                'class': 'btn cbi-button',
                                                'click': UI.prototype.hideModal
@@ -4731,7 +4731,7 @@ var UI = baseclass.extend(/** @lends LuCI.ui.prototype */ {
                                        UI.prototype.changes.displayStatus('warning', [
                                                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 <strong>connecting to the new IP</strong> within %d seconds to retain the changes.').format(affected, L.env.apply_rollback)),
-                                               E('div', { 'class': 'right' }, [
+                                               E('div', { 'class': 'button-row' }, [
                                                        E('div', {
                                                                'class': 'btn cbi-button',
                                                                'click': rejectFn,