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')) {
|
||||
footer.appendChild(E('div', { 'class': 'cbi-page-actions' }, [
|
||||
E('input', {
|
||||
E('button', {
|
||||
'class': 'cbi-button cbi-button-apply',
|
||||
'type': 'button',
|
||||
'value': _('Save & Apply'),
|
||||
'click': L.bind(this.handleSaveApply, this)
|
||||
}), ' ',
|
||||
E('input', {
|
||||
'click': L.ui.createHandlerFn(this, 'handleSaveApply')
|
||||
}, _('Save & Apply')), ' ',
|
||||
E('button', {
|
||||
'class': 'cbi-button cbi-button-save',
|
||||
'type': 'submit',
|
||||
'value': _('Save'),
|
||||
'click': L.bind(this.handleSave, this)
|
||||
}), ' ',
|
||||
E('input', {
|
||||
'click': L.ui.createHandlerFn(this, 'handleSave')
|
||||
}, _('Save')), ' ',
|
||||
E('button', {
|
||||
'class': 'cbi-button cbi-button-reset',
|
||||
'type': 'button',
|
||||
'value': _('Reset'),
|
||||
'click': L.bind(this.handleReset, this)
|
||||
})
|
||||
'click': L.ui.createHandlerFn(this, 'handleReset')
|
||||
}, _('Reset'))
|
||||
]));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue