Merge branch 'master' of github.com:metamaps/metamaps_gen002 into prevent.scrolling
This commit is contained in:
commit
5a31c91597
3 changed files with 13 additions and 9 deletions
File diff suppressed because one or more lines are too long
|
@ -1758,7 +1758,9 @@ Metamaps.JIT = {
|
||||||
var posChild = adj.nodeTo.pos.getc(true);
|
var posChild = adj.nodeTo.pos.getc(true);
|
||||||
|
|
||||||
//plot arrow edge
|
//plot arrow edge
|
||||||
if (directionCat == "none") {
|
if (!direction) {
|
||||||
|
// render nothing for this arrow if the direction couldn't be retrieved
|
||||||
|
} else if (directionCat == "none") {
|
||||||
edgeHelper.line.render({
|
edgeHelper.line.render({
|
||||||
x: pos.x,
|
x: pos.x,
|
||||||
y: pos.y
|
y: pos.y
|
||||||
|
|
|
@ -356,10 +356,13 @@ Metamaps.Backbone.init = function () {
|
||||||
return Metamaps.Topics.get(this.get('node2_id'));
|
return Metamaps.Topics.get(this.get('node2_id'));
|
||||||
},
|
},
|
||||||
getDirection: function () {
|
getDirection: function () {
|
||||||
return [
|
var t1 = this.getTopic1(),
|
||||||
this.getTopic1().get('node').id,
|
t2 = this.getTopic2();
|
||||||
this.getTopic2().get('node').id
|
|
||||||
];
|
return t1 && t2 ? [
|
||||||
|
t1.get('node').id,
|
||||||
|
t2.get('node').id
|
||||||
|
] : false;
|
||||||
},
|
},
|
||||||
getMapping: function () {
|
getMapping: function () {
|
||||||
|
|
||||||
|
@ -893,7 +896,6 @@ Metamaps.TopicCard = {
|
||||||
});
|
});
|
||||||
var embedlyEl = $('<a/>', {
|
var embedlyEl = $('<a/>', {
|
||||||
id: 'embedlyLink',
|
id: 'embedlyLink',
|
||||||
'data-card-chrome': '0',
|
|
||||||
'data-card-description': '0',
|
'data-card-description': '0',
|
||||||
href: text
|
href: text
|
||||||
}).html(text);
|
}).html(text);
|
||||||
|
@ -1176,7 +1178,7 @@ Metamaps.TopicCard = {
|
||||||
|
|
||||||
nodeValues.attachmentsHidden = '';
|
nodeValues.attachmentsHidden = '';
|
||||||
if (topic.get('link') && topic.get('link')!== '') {
|
if (topic.get('link') && topic.get('link')!== '') {
|
||||||
nodeValues.embeds = '<a href="' + topic.get('link') + '" id="embedlyLink" target="_blank" data-card-chrome="0" data-card-description="0">';
|
nodeValues.embeds = '<a href="' + topic.get('link') + '" id="embedlyLink" target="_blank" data-card-description="0">';
|
||||||
nodeValues.embeds += topic.get('link');
|
nodeValues.embeds += topic.get('link');
|
||||||
nodeValues.embeds += '</a><div id="embedlyLinkLoader"></div>';
|
nodeValues.embeds += '</a><div id="embedlyLinkLoader"></div>';
|
||||||
nodeValues.attachmentsHidden = 'hidden';
|
nodeValues.attachmentsHidden = 'hidden';
|
||||||
|
|
Loading…
Reference in a new issue