From 0466acb85f9d0c03e7efc14ac0433ea389ae20d2 Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Fri, 7 Jun 2024 09:39:34 +0200 Subject: [PATCH] luci-base: move button one level up for Save & Apply This is a preparation commit so the buttons could get the new css class 'button-row' Signed-off-by: Florian Eckert --- .../htdocs/luci-static/resources/ui.js | 43 ++++++++++--------- 1 file changed, 23 insertions(+), 20 deletions(-) diff --git a/modules/luci-base/htdocs/luci-static/resources/ui.js b/modules/luci-base/htdocs/luci-static/resources/ui.js index 4170ac366f..9242ad5bba 100644 --- a/modules/luci-base/htdocs/luci-static/resources/ui.js +++ b/modules/luci-base/htdocs/luci-static/resources/ui.js @@ -4480,26 +4480,29 @@ var UI = baseclass.extend(/** @lends LuCI.ui.prototype */ { E('var', {}, E('ins', ' ')), ' ', _('Option changed') ]), E('div', { 'class': 'uci-change-legend-label' }, [ E('var', {}, E('del', ' ')), ' ', _('Option removed') ])]), - E('br'), list, - E('div', { 'class': 'right' }, [ - E('div', { - 'class': 'btn cbi-button', - 'click': UI.prototype.hideModal - }, [ _('Close') ]), ' ', - new UIComboButton('0', { - 0: [ _('Save & Apply') ], - 1: [ _('Apply unchecked') ] - }, { - classes: { - 0: 'btn cbi-button cbi-button-positive important', - 1: 'btn cbi-button cbi-button-negative important' - }, - click: L.bind(function(ev, mode) { this.apply(mode == '0') }, this) - }).render(), ' ', - E('div', { - 'class': 'btn cbi-button cbi-button-reset', - 'click': L.bind(this.revert, this) - }, [ _('Revert') ])])]) + E('br'), + list, + ]), + E('div', { 'class': 'right' }, [ + E('div', { + 'class': 'btn cbi-button', + 'click': UI.prototype.hideModal + }, [ _('Close') ]), ' ', + new UIComboButton('0', { + 0: [ _('Save & Apply') ], + 1: [ _('Apply unchecked') ] + }, { + classes: { + 0: 'btn cbi-button cbi-button-positive important', + 1: 'btn cbi-button cbi-button-negative important' + }, + click: L.bind(function(ev, mode) { this.apply(mode == '0') }, this) + }).render(), ' ', + E('div', { + 'class': 'btn cbi-button cbi-button-reset', + 'click': L.bind(this.revert, this) + }, [ _('Revert') ]) + ]) ]); for (var config in this.changes) { -- 2.30.2