This commit is contained in:
Zhora Shalyapin 2025-03-20 12:52:08 +00:00
parent d891afbdf4
commit cf7a722429

10
main.js
View File

@ -2015,13 +2015,19 @@
`)
}
function prettifyRouteEditPage() {
function makeTextareasOneRowInRouteEditPage() {
document.querySelectorAll(`textarea:is([name="track[comment_int]"], [name="track[comment_ext]"])`).forEach(el => {
el.rows = 1
})
}
function hideRedundantRowsInRouteEditPage() {
document.querySelectorAll(`table tr:is(:nth-child(3), :nth-child(4), :nth-child(5))`).forEach(el => el.classList.add("hidden"))
}
function prettifyRouteEditPage() {
makeTextareasOneRowInRouteEditPage()
hideRedundantRowsInRouteEditPage()
createPointsInpitForRouteEditPage()
}