fix & red borders
This commit is contained in:
parent
cadb4b5fbd
commit
e05e78c71d
10
main.js
10
main.js
@ -1866,7 +1866,7 @@
|
|||||||
pointInput.id = "add-point"
|
pointInput.id = "add-point"
|
||||||
pointInput.type = "text"
|
pointInput.type = "text"
|
||||||
pointInput.addEventListener("focus", () => {
|
pointInput.addEventListener("focus", () => {
|
||||||
pointInput.classList.remove("success")
|
pointInput.classList.remove("success", "error")
|
||||||
})
|
})
|
||||||
|
|
||||||
let addButton = document.createElement("button")
|
let addButton = document.createElement("button")
|
||||||
@ -1914,7 +1914,7 @@
|
|||||||
let option = document.querySelector(`#cps_in option[value="${addedPoints[point]}"]`)
|
let option = document.querySelector(`#cps_in option[value="${addedPoints[point]}"]`)
|
||||||
option.selected = true
|
option.selected = true
|
||||||
document.querySelector(`#cps_delete`).click()
|
document.querySelector(`#cps_delete`).click()
|
||||||
pointInput.classList.add("success")
|
pointInput.classList.add("error")
|
||||||
pointInput.value = ""
|
pointInput.value = ""
|
||||||
option.selected = false
|
option.selected = false
|
||||||
scrollSelectToBottom("#cps_in")
|
scrollSelectToBottom("#cps_in")
|
||||||
@ -1927,7 +1927,7 @@
|
|||||||
document.querySelector("table tr:nth-child(16) td").prepend(addPointsContainer)
|
document.querySelector("table tr:nth-child(16) td").prepend(addPointsContainer)
|
||||||
|
|
||||||
addStylesToHead(`
|
addStylesToHead(`
|
||||||
select {
|
#cps_in, #cps_avail {
|
||||||
height: 15em;
|
height: 15em;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1935,6 +1935,10 @@
|
|||||||
border-color: green;
|
border-color: green;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.error {
|
||||||
|
border-color: red;
|
||||||
|
}
|
||||||
|
|
||||||
#add-point {
|
#add-point {
|
||||||
width: 5em;
|
width: 5em;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user