luci-base: replace button tag with div tag in ui.js
authorFlorian Eckert <fe@dev.tdt.de>
Fri, 7 Jun 2024 07:37:11 +0000 (09:37 +0200)
committerFlorian Eckert <fe@dev.tdt.de>
Fri, 7 Jun 2024 11:33:00 +0000 (13:33 +0200)
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
modules/luci-base/htdocs/luci-static/resources/ui.js

index 99bfb8052fc3341aebeaf9defe0d9dc0588d1403..4170ac366f2ac33ff55c625afc903078caab4a7b 100644 (file)
@@ -4482,7 +4482,7 @@ var UI = baseclass.extend(/** @lends LuCI.ui.prototype */ {
                                                        E('var', {}, E('del', '&#160;')), ' ', _('Option removed') ])]),
                                        E('br'), list,
                                        E('div', { 'class': 'right' }, [
-                                               E('button', {
+                                               E('div', {
                                                        'class': 'btn cbi-button',
                                                        'click': UI.prototype.hideModal
                                                }, [ _('Close') ]), ' ',
@@ -4496,7 +4496,7 @@ var UI = baseclass.extend(/** @lends LuCI.ui.prototype */ {
                                                        },
                                                        click: L.bind(function(ev, mode) { this.apply(mode == '0') }, this)
                                                }).render(), ' ',
-                                               E('button', {
+                                               E('div', {
                                                        'class': 'btn cbi-button cbi-button-reset',
                                                        'click': L.bind(this.revert, this)
                                                }, [ _('Revert') ])])])