Styling
This commit is contained in:
+2
-2
@@ -138,9 +138,9 @@ function refreshWatch(watchIndex) {
|
||||
let timeCell = document.getElementById("time-" + watchIndex)
|
||||
timeCell.textContent = timeToISO(sumForWatch(actualTopic.watches[watchIndex]))
|
||||
if(actualTopic.watches[watchIndex]["actions"].length !== 0 && actualTopic.watches[watchIndex]["actions"].slice(-1)[0]["type"] === "start"){
|
||||
timeCell.classList.add("active")
|
||||
timeCell.classList.add("activeWatch")
|
||||
} else {
|
||||
timeCell.classList.remove("active")
|
||||
timeCell.classList.remove("activeWatch")
|
||||
}
|
||||
let countCell = document.getElementById("count-" + watchIndex)
|
||||
countCell.textContent = countForWatch(actualTopic.watches[watchIndex]) + " Wortmeldungen"
|
||||
|
||||
Reference in New Issue
Block a user