luci-base: fixing a regression that was add by the ne button-row css class

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
Florian Eckert
2024-07-19 08:20:21 +02:00
parent 4bb1c8a3c8
commit 8b1dd5dec3

View 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);