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>
E('p', {}, [ _('An error occurred while saving the form:') ]),
E('p', {}, [ E('em', { 'style': 'white-space:pre' }, [ e.message ]) ]),
E('div', { 'class': 'right' }, [
E('p', {}, [ _('An error occurred while saving the form:') ]),
E('p', {}, [ E('em', { 'style': 'white-space:pre' }, [ e.message ]) ]),
E('div', { 'class': 'right' }, [
- E('button', { 'class': 'btn', 'click': ui.hideModal }, [ _('Dismiss') ])
+ E('button', { 'class': 'cbi-button', 'click': ui.hideModal }, [ _('Dismiss') ])
if (this.sortable) {
dom.append(tdEl.lastElementChild, [
if (this.sortable) {
dom.append(tdEl.lastElementChild, [
'title': _('Drag to reorder'),
'title': _('Drag to reorder'),
- 'class': 'btn cbi-button drag-handle center',
+ 'class': 'cbi-button drag-handle center',
'style': 'cursor:move',
'disabled': this.map.readonly || null
}, '☰')
'style': 'cursor:move',
'disabled': this.map.readonly || null
}, '☰')
nodes,
E('div', { 'class': 'right' }, [
E('button', {
nodes,
E('div', { 'class': 'right' }, [
E('button', {
'click': ui.createHandlerFn(this, 'handleModalCancel', m)
}, [ _('Dismiss') ]), ' ',
E('button', {
'click': ui.createHandlerFn(this, 'handleModalCancel', m)
}, [ _('Dismiss') ]), ' ',
E('button', {