colspan for finish message

This commit is contained in:
Zhora Shalyapin 2025-03-20 12:34:22 +00:00
parent e963a3e179
commit d891afbdf4

View File

@ -1894,10 +1894,19 @@
document.querySelector(`#content table table tr:nth-child(2) `).remove()
}
function useColspanForFinishWarning() {
let rows = [...document.querySelectorAll(`#content > form > table > tbody > tr:nth-child(3) tr`)]
let finishRow = rows.find(el => el.querySelector(`td`)?.textContent.trim() == "Финиш маршрута")
finishRow.querySelectorAll(`td:not(:nth-child(2))`).forEach(el => el.remove())
finishRow.querySelector(`td`).colSpan = 4
}
function prettifyRouteBuildPage() {
changeColumnWidthForRouteBuildPage()
hideDescriptionFromRouteBuildPage()
hideStartRowFromRouteBuildPage()
useColspanForFinishWarning()
}
function matchNumberFromSelect(select) {