luci-mod-network: revert replacing button tags with div tags 7200/head
authorFlorian Eckert <fe@dev.tdt.de>
Fri, 19 Jul 2024 09:01:55 +0000 (11:01 +0200)
committerFlorian Eckert <fe@dev.tdt.de>
Fri, 19 Jul 2024 09:01:55 +0000 (11:01 +0200)
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js

index 71e97a7fffc64eaf827056fea03032ba0af5d6ad..bacf530f144faae270d298f0e732379ea10e2149 100644 (file)
@@ -176,7 +176,7 @@ function iface_updown(up, id, ev, force) {
                                ui.showModal(_('Confirm disconnect'), [
                                        E('p', _('You appear to be currently connected to the device via the "%h" interface. Do you really want to shut down the interface?').format(id)),
                                        E('div', { 'class': 'button-row' }, [
-                                               E('div', {
+                                               E('button', {
                                                        'class': 'btn cbi-button cbi-button-neutral',
                                                        'click': function(ev) {
                                                                btns[1].classList.remove('spinning');
@@ -187,7 +187,7 @@ function iface_updown(up, id, ev, force) {
                                                        }
                                                }, _('Cancel')),
                                                ' ',
-                                               E('div', {
+                                               E('button', {
                                                        'class': 'btn cbi-button cbi-button-negative important',
                                                        'click': function(ev) {
                                                                dsc.setAttribute('disconnect', '');