luci-base: fixing a regression that was add by the ne button-row css class
authorFlorian Eckert <fe@dev.tdt.de>
Fri, 19 Jul 2024 06:20:21 +0000 (08:20 +0200)
committerFlorian Eckert <fe@dev.tdt.de>
Fri, 19 Jul 2024 06:20:21 +0000 (08:20 +0200)
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
modules/luci-base/htdocs/luci-static/resources/form.js

index 337c9608b1cd6dbd6b1147cef69c570a59feb507..3834bceb0199073b0fbbd16678759062e3ee2eeb 100644 (file)
@@ -2974,7 +2974,7 @@ var CBITableSection = CBITypedSection.extend(/** @lends LuCI.form.TableSection.p
 
                        if (!this.getPreviousModalMap())
                                prevNode.parentNode
-                                       .querySelector('div.right > button')
+                                       .querySelector('div.button-row > button')
                                        .firstChild.data = _('Dismiss');
                }
                else {
@@ -3207,8 +3207,8 @@ var CBITableSection = CBITypedSection.extend(/** @lends LuCI.form.TableSection.p
                                                .appendChild(E('span', title ? ' ยป ' + title : ''));
 
                                        mapNode.parentNode
-                                               .querySelector('div.right > button')
-                                               .firstChild.data = _('Back');
+                                               .querySelector('div.button-row > button')
+                                               .firstChild.data = _('Dismiss');
 
                                        mapNode.classList.add('hidden');
                                        mapNode.parentNode.insertBefore(nodes, mapNode.nextElementSibling);