diff options
-rw-r--r-- | modules/luci-base/htdocs/luci-static/resources/form.js | 2 | ||||
-rw-r--r-- | modules/luci-base/htdocs/luci-static/resources/ui.js | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/modules/luci-base/htdocs/luci-static/resources/form.js b/modules/luci-base/htdocs/luci-static/resources/form.js index 6b0e30d118..c6d2445a55 100644 --- a/modules/luci-base/htdocs/luci-static/resources/form.js +++ b/modules/luci-base/htdocs/luci-static/resources/form.js @@ -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) diff --git a/modules/luci-base/htdocs/luci-static/resources/ui.js b/modules/luci-base/htdocs/luci-static/resources/ui.js index 2ee5fbe704..372b6c3c80 100644 --- a/modules/luci-base/htdocs/luci-static/resources/ui.js +++ b/modules/luci-base/htdocs/luci-static/resources/ui.js @@ -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, |