luci-base: replace button tag with div tag in ui.js
authorFlorian Eckert <fe@dev.tdt.de>
Fri, 7 Jun 2024 10:08:19 +0000 (12:08 +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 20649e0f8aabc9361e32e84aefa63e99ca137c67..ec94507cd8a6c89f59099f98e8c570ae20a8000c 100644 (file)
@@ -4734,15 +4734,15 @@ var UI = baseclass.extend(/** @lends LuCI.ui.prototype */ {
                                                E('p', _('Any IP change requires <strong>connecting to the new IP</strong> within %d seconds to retain the changes.').format(L.env.apply_rollback)),
                                                E('p', _('Choose how to apply changes:')),
                                                E('div', { 'class': 'right' }, [
-                                                       E('button', {
+                                                       E('div', {
                                                                'class': 'btn cbi-button',
                                                                'click': rejectFn,
                                                        }, [ _('Cancel') ]), ' ',
-                                                       E('button', {
+                                                       E('div', {
                                                                'class': 'btn cbi-button-action important',
                                                                'click': resolveFn.bind(null, true)
                                                        }, [ _('Apply, reverting if GUI remains unreachable') ]), ' ',
-                                                       E('button', {
+                                                       E('div', {
                                                                'class': 'btn cbi-button-negative important',
                                                                'click': resolveFn.bind(null, false)
                                                        }, [ _('Apply, committing now') ])