colspan for finish message
This commit is contained in:
parent
e963a3e179
commit
d891afbdf4
9
main.js
9
main.js
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user