luci-base: replace button tag with div tag in ui.js
authorFlorian Eckert <fe@dev.tdt.de>
Fri, 7 Jun 2024 07:45:25 +0000 (09:45 +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 78a6d1a86f7df5b12e53a742bce9cd7cd98675d3..aef84fad806c9ce3d7a538c1901946dc064a270b 100644 (file)
@@ -4234,7 +4234,7 @@ var UI = baseclass.extend(/** @lends LuCI.ui.prototype */ {
                                                                upload.focus();
                                                        }
                                                }),
-                                               E('button', {
+                                               E('div', {
                                                        'class': 'btn cbi-button',
                                                        'click': function(ev) {
                                                                ev.target.previousElementSibling.click();
@@ -4242,7 +4242,7 @@ var UI = baseclass.extend(/** @lends LuCI.ui.prototype */ {
                                                }, [ _('Browse…') ])
                                        ]),
                                        E('div', { 'class': 'right', 'style': 'flex:1' }, [
-                                               E('button', {
+                                               E('div', {
                                                        'class': 'btn cbi-button',
                                                        'click': function() {
                                                                UI.prototype.hideModal();
@@ -4250,7 +4250,7 @@ var UI = baseclass.extend(/** @lends LuCI.ui.prototype */ {
                                                        }
                                                }, [ _('Cancel') ]),
                                                ' ',
-                                               E('button', {
+                                               E('div', {
                                                        'class': 'btn cbi-button-action important',
                                                        'disabled': true,
                                                        'click': function(ev) {