Skip to content
Snippets Groups Projects
Commit 3e198a9f authored by AA2875's avatar AA2875
Browse files

Expandia parannettu ja korjattu

parent 7cd53dae
No related branches found
No related tags found
No related merge requests found
......@@ -56,7 +56,7 @@ function createJumpListItem(jump) {
li.appendChild(jumpItemFullInfo(jump))
spanMore.onclick = function() {
let arrow = document.getElementsByClassName('expandJump')[0]
let arrow = document.getElementById(jump._id).getElementsByClassName('expandJump')[0]
let clickedItem = document.getElementById(jump._id).getElementsByClassName('fullJumpInfo')[0]
if (clickedItem.style.display != 'none') {
clickedItem.style.display = 'none'
......@@ -278,12 +278,10 @@ function changeJumpOrder() {
document.getElementById('jumpsList').innerHTML = ''
let button = document.getElementById('sortJumpsButton')
if (button.innerHTML == 'Järjestys ▼ ') {
console.log('if')
button.innerHTML = 'Järjestys ▲ '
jumpOrder = 'asc'
showJumps(jumpsJSON)
} else {
console.log('else')
button.innerHTML = 'Järjestys ▼ '
jumpOrder = 'desc'
showJumps(jumpsJSON)
......@@ -429,7 +427,6 @@ function getJumpInfo(id) {
let spanLink = liLink.getElementsByClassName('fullJumpInfoValue')[0]
let link = spanLink.getElementsByTagName('a')[0].innerHTML
data['link'] = link
console.log(link)
} catch { data['link'] = '' }
return data
}
......
......@@ -98,6 +98,9 @@ li {
.expandJump {
float: right;
cursor: pointer;
z-index: 1;
padding: 1em 1.2em 1em 101%;
margin: -1em -1.2em -1em -101%;
}
.fullJumpInfo input {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment