Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 5ef58552

Přidáno uživatelem Martin Matas před téměř 6 roky(ů)

Fixed bugs after merge (refs #7562)

Zobrazit rozdíly:

sources/imiger-core/src/main/webapp/js/components/node.js
413 413
	_onNodeClick(e) {
414 414
		e.stopPropagation();
415 415

  
416
        var archetypeString = app.archetype.vertex[this.archetype].name;
416
        var archetypeString = app.archetype.vertex[this.archetype].name.toLowerCase();;
417 417
        if (archetypeString !== 'person') archetypeString = 'item';
418 418
        var notifyTimeline;
419 419

  
sources/imiger-core/src/main/webapp/js/showGraphApp.js
126 126

  
127 127
		// timeline
128 128
        document.addEventListener('timelineClick', function (e) {
129
            var node = app.nodeList[e.detail];
129
            var nodeIDs = app.nodeList.map(function(node) { return node.id; });
130
            var node = app.nodeList[nodeIDs.indexOf(e.detail)];
130 131
            if (node !== undefined) {
131 132
                node._onNodeClick(e);
132 133
            }
sources/imiger-core/src/main/webapp/js/timeline/auxiliary/RestSource.js
114 114
                if (beginAttrIdx !== -1 && typeof v.attributes[beginAttrIdx] !== 'undefined') {
115 115
                    parsed = parseInt(v.attributes[beginAttrIdx][1], 10);
116 116

  
117
                    if (isNaN(parsed)) {
117
                    if (isNaN(parsed) || parsed < 4000) {
118 118
                        node.begin = v.attributes[beginAttrIdx][1];
119 119
                    } else {
120 120
                        date = new Date(parsed);
......
125 125
                if (endAttrIdx !== -1 && typeof v.attributes[endAttrIdx] !== 'undefined') {
126 126
                    parsed = parseInt(v.attributes[endAttrIdx][1], 10);
127 127

  
128
                    if (isNaN(parsed)) {
128
                    if (isNaN(parsed) || parsed < 4000) {
129 129
                        node.end = v.attributes[endAttrIdx][1];
130 130
                    } else {
131 131
                        date = new Date(parsed);

Také k dispozici: Unified diff