luci-base: luci.js: use createHandlerFn() for page actions
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
e14b884771
commit
eac8316e0d
1 changed files with 9 additions and 15 deletions
|
@ -1306,24 +1306,18 @@
|
||||||
|
|
||||||
if (mc.querySelector('.cbi-map')) {
|
if (mc.querySelector('.cbi-map')) {
|
||||||
footer.appendChild(E('div', { 'class': 'cbi-page-actions' }, [
|
footer.appendChild(E('div', { 'class': 'cbi-page-actions' }, [
|
||||||
E('input', {
|
E('button', {
|
||||||
'class': 'cbi-button cbi-button-apply',
|
'class': 'cbi-button cbi-button-apply',
|
||||||
'type': 'button',
|
'click': L.ui.createHandlerFn(this, 'handleSaveApply')
|
||||||
'value': _('Save & Apply'),
|
}, _('Save & Apply')), ' ',
|
||||||
'click': L.bind(this.handleSaveApply, this)
|
E('button', {
|
||||||
}), ' ',
|
|
||||||
E('input', {
|
|
||||||
'class': 'cbi-button cbi-button-save',
|
'class': 'cbi-button cbi-button-save',
|
||||||
'type': 'submit',
|
'click': L.ui.createHandlerFn(this, 'handleSave')
|
||||||
'value': _('Save'),
|
}, _('Save')), ' ',
|
||||||
'click': L.bind(this.handleSave, this)
|
E('button', {
|
||||||
}), ' ',
|
|
||||||
E('input', {
|
|
||||||
'class': 'cbi-button cbi-button-reset',
|
'class': 'cbi-button cbi-button-reset',
|
||||||
'type': 'button',
|
'click': L.ui.createHandlerFn(this, 'handleReset')
|
||||||
'value': _('Reset'),
|
}, _('Reset'))
|
||||||
'click': L.bind(this.handleReset, this)
|
|
||||||
})
|
|
||||||
]));
|
]));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue