Revize ff932ba3
Přidáno uživatelem Tomáš Šimandl před asi 6 roky(ů)
sources/src/main/webapp/js/components/group.js | ||
---|---|---|
640 | 640 |
'class': 'archetype-icon', |
641 | 641 |
'transform': `translate(15, -10)`, |
642 | 642 |
}); |
643 |
relatedArchetypeIcon.addEventListener('click', relatedArchetypeClick.bind(this, parseInt(archetypeIndex))); |
|
643 |
relatedArchetypeIcon.addEventListener('click', relatedArchetypeClick.bind(this, parseInt(archetypeIndex))); // TODO when icon == null can not click on item
|
|
644 | 644 |
relatedArchetypeIcon.innerHTML = app.archetype.vertex[archetypeIndex].icon; |
645 | 645 |
relatedArchetype.appendChild(relatedArchetypeIcon); |
646 | 646 |
|
sources/src/main/webapp/js/components/vertex.js | ||
---|---|---|
505 | 505 |
'class': 'archetype-icon', |
506 | 506 |
'transform': 'translate(8, 8)', |
507 | 507 |
}); |
508 |
archetypeIcon.addEventListener('click', archetypeClick.bind(this)); |
|
508 |
archetypeIcon.addEventListener('click', archetypeClick.bind(this)); // TODO when icon == null can not click on item
|
|
509 | 509 |
|
510 | 510 |
archetypeIcon.innerHTML = app.archetype.vertex[this.archetype].icon; |
511 | 511 |
|
... | ... | |
532 | 532 |
'class': 'archetype-icon', |
533 | 533 |
'transform': `translate(${archetypeIconOrder * relatedArchetypeIconWidth}, 8)`, |
534 | 534 |
}); |
535 |
relatedArchetype.addEventListener('click', relatedArchetypeClick.bind(this, parseInt(archetypeIndex))); |
|
535 |
relatedArchetype.addEventListener('click', relatedArchetypeClick.bind(this, parseInt(archetypeIndex))); // TODO when icon == null can not click on item
|
|
536 | 536 |
|
537 | 537 |
relatedArchetype.innerHTML = app.archetype.vertex[archetypeIndex].icon; |
538 | 538 |
|
... | ... | |
592 | 592 |
'class': 'archetype-icon', |
593 | 593 |
'transform': `translate(15, -10)`, |
594 | 594 |
}); |
595 |
relatedArchetypeIcon.addEventListener('click', relatedArchetypeClick.bind(this, parseInt(archetypeIndex))); |
|
595 |
relatedArchetypeIcon.addEventListener('click', relatedArchetypeClick.bind(this, parseInt(archetypeIndex))); // TODO when icon == null can not click on item
|
|
596 | 596 |
relatedArchetypeIcon.innerHTML = app.archetype.vertex[archetypeIndex].icon; |
597 | 597 |
relatedArchetype.appendChild(relatedArchetypeIcon); |
598 | 598 |
|
Také k dispozici: Unified diff
added TODOs for icon click event listener