luci-base: change css class btn to cbi-button
The css class btn is only a valid input element on lua rendered pages. Use instead cbi-button for javascript rendered pages. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
parent
97e673b72c
commit
80262bb9a7
1 changed files with 4 additions and 4 deletions
|
@ -603,7 +603,7 @@ var CBIMap = CBIAbstractElement.extend(/** @lends LuCI.form.Map.prototype */ {
|
||||||
E('p', {}, [ _('An error occurred while saving the form:') ]),
|
E('p', {}, [ _('An error occurred while saving the form:') ]),
|
||||||
E('p', {}, [ E('em', { 'style': 'white-space:pre' }, [ e.message ]) ]),
|
E('p', {}, [ E('em', { 'style': 'white-space:pre' }, [ e.message ]) ]),
|
||||||
E('div', { 'class': 'right' }, [
|
E('div', { 'class': 'right' }, [
|
||||||
E('button', { 'class': 'btn', 'click': ui.hideModal }, [ _('Dismiss') ])
|
E('button', { 'class': 'cbi-button', 'click': ui.hideModal }, [ _('Dismiss') ])
|
||||||
])
|
])
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
@ -2639,9 +2639,9 @@ var CBITableSection = CBITypedSection.extend(/** @lends LuCI.form.TableSection.p
|
||||||
|
|
||||||
if (this.sortable) {
|
if (this.sortable) {
|
||||||
dom.append(tdEl.lastElementChild, [
|
dom.append(tdEl.lastElementChild, [
|
||||||
E('div', {
|
E('button', {
|
||||||
'title': _('Drag to reorder'),
|
'title': _('Drag to reorder'),
|
||||||
'class': 'btn cbi-button drag-handle center',
|
'class': 'cbi-button drag-handle center',
|
||||||
'style': 'cursor:move',
|
'style': 'cursor:move',
|
||||||
'disabled': this.map.readonly || null
|
'disabled': this.map.readonly || null
|
||||||
}, '☰')
|
}, '☰')
|
||||||
|
@ -2879,7 +2879,7 @@ var CBITableSection = CBITypedSection.extend(/** @lends LuCI.form.TableSection.p
|
||||||
nodes,
|
nodes,
|
||||||
E('div', { 'class': 'right' }, [
|
E('div', { 'class': 'right' }, [
|
||||||
E('button', {
|
E('button', {
|
||||||
'class': 'btn',
|
'class': 'cbi-button',
|
||||||
'click': ui.createHandlerFn(this, 'handleModalCancel', m)
|
'click': ui.createHandlerFn(this, 'handleModalCancel', m)
|
||||||
}, [ _('Dismiss') ]), ' ',
|
}, [ _('Dismiss') ]), ' ',
|
||||||
E('button', {
|
E('button', {
|
||||||
|
|
Loading…
Reference in a new issue