Revize a372c9bf
Přidáno uživatelem Martin Matas před téměř 6 roky(ů)
sources/imiger-core/src/main/webapp/js/components/node.js | ||
---|---|---|
421 | 421 |
app.sidebarComponent.excludedNodeListComponent.addNode(this); |
422 | 422 |
} else if (document.modeForm.mode.value === 'move') { |
423 | 423 |
this.highlightWithNeighbours(!this.isHighlighted); |
424 |
var notifyTimeline = new CustomEvent('imigerClick', { detail: { entityID: this.id, archetype: "item" } }); |
|
425 |
window.frames[0].document.dispatchEvent(notifyTimeline); |
|
424 | 426 |
|
425 | 427 |
if (this.isHighlighted) { |
426 | 428 |
app.activeNode = this; |
sources/imiger-core/src/main/webapp/timeline/js/cz/kajda/timeline/Timeline.js | ||
---|---|---|
500 | 500 |
}, |
501 | 501 |
|
502 | 502 |
_handleIMiGErClick : function(e) { |
503 |
var entity = this.getEntities().get(e.detail);
|
|
504 |
bandItem = this._bandGroup.getBand("person").getBandItem(entity.getId());
|
|
503 |
var entity = this.getEntities().get(e.originalEvent.detail.entityID);
|
|
504 |
bandItem = this._bandGroup.getBand(e.originalEvent.detail.archetype).getBandItem(entity.getId());
|
|
505 | 505 |
|
506 | 506 |
this.focusItem(bandItem.getEntity(), false); |
507 | 507 |
this._fireEvent("itemClick", entity); |
sources/imiger-core/src/main/webapp/timeline/js/main.js | ||
---|---|---|
136 | 136 |
|
137 | 137 |
// creates static data source using JSON |
138 | 138 |
app.createSource(); |
139 |
/*var event = $.Event( "imigerClick" ); |
|
140 |
event.detail = 66; |
|
141 |
$(document).trigger( event );*/ |
|
139 |
|
|
142 | 140 |
// creates data source using REST server request |
143 | 141 |
//app.startDataWizard("http://localhost:8080/timeline-rest/"); |
144 | 142 |
|
Také k dispozici: Unified diff
IMiGEr to Timeline interaction (refs #7464)
- implemented Timeline selection based on selected node in IMiGEr