summaryrefslogtreecommitdiff
path: root/modules/luci-base/htdocs/luci-static/resources/form.js
diff options
context:
space:
mode:
authorFlorian Eckert <fe@dev.tdt.de>2021-06-21 15:02:04 +0200
committerFlorian Eckert <fe@dev.tdt.de>2021-07-01 13:10:15 +0200
commit80262bb9a7e63eeee0e1fa5f290b27a569a644bf (patch)
treeec3091096373d1e2cc442a116f4e86403e3c8ffb /modules/luci-base/htdocs/luci-static/resources/form.js
parent97e673b72cc96f5f866df7e990a51fa65bff5b5f (diff)
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>
Diffstat (limited to 'modules/luci-base/htdocs/luci-static/resources/form.js')
-rw-r--r--modules/luci-base/htdocs/luci-static/resources/form.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/luci-base/htdocs/luci-static/resources/form.js b/modules/luci-base/htdocs/luci-static/resources/form.js
index 9477b3f3c6..29e8fa7f05 100644
--- a/modules/luci-base/htdocs/luci-static/resources/form.js
+++ b/modules/luci-base/htdocs/luci-static/resources/form.js
@@ -603,7 +603,7 @@ var CBIMap = CBIAbstractElement.extend(/** @lends LuCI.form.Map.prototype */ {
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') ])
])
]);
}
@@ -2639,9 +2639,9 @@ var CBITableSection = CBITypedSection.extend(/** @lends LuCI.form.TableSection.p
if (this.sortable) {
dom.append(tdEl.lastElementChild, [
- E('div', {
+ E('button', {
'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
}, '☰')
@@ -2879,7 +2879,7 @@ var CBITableSection = CBITypedSection.extend(/** @lends LuCI.form.TableSection.p
nodes,
E('div', { 'class': 'right' }, [
E('button', {
- 'class': 'btn',
+ 'class': 'cbi-button',
'click': ui.createHandlerFn(this, 'handleModalCancel', m)
}, [ _('Dismiss') ]), ' ',
E('button', {