diff options
author | Florian Eckert <fe@dev.tdt.de> | 2024-06-07 09:39:34 +0200 |
---|---|---|
committer | Florian Eckert <fe@dev.tdt.de> | 2024-06-07 13:33:00 +0200 |
commit | 0466acb85f9d0c03e7efc14ac0433ea389ae20d2 (patch) | |
tree | 5ea42e8e241a66b3d0235db50b102e7a4e511bb8 /modules/luci-base/htdocs/luci-static/resources | |
parent | 4440b00b2b732923bb1092082980856e35bb4f5e (diff) |
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 <fe@dev.tdt.de>
Diffstat (limited to 'modules/luci-base/htdocs/luci-static/resources')
-rw-r--r-- | modules/luci-base/htdocs/luci-static/resources/ui.js | 43 |
1 files 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) { |