summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base/htdocs/luci-static/resources/ui.js
diff options
context:
space:
mode:
authorFlorian Eckert <fe@dev.tdt.de>2024-06-07 12:52:13 +0200
committerFlorian Eckert <fe@dev.tdt.de>2024-07-09 16:19:51 +0200
commit8691cba6958ae2c2bb69eca7ff23591278145b83 (patch)
treefee23fd245922b18b3d4d6d3355fb344f351089d /modules/luci-base/htdocs/luci-static/resources/ui.js
parentbff2a433954da91c67d6228e2eb76ff074b8d64d (diff)
luci-base: replace css class right with css class button-row
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Diffstat (limited to 'modules/luci-base/htdocs/luci-static/resources/ui.js')
-rw-r--r--modules/luci-base/htdocs/luci-static/resources/ui.js8
1 files changed, 4 insertions, 4 deletions
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,