--- a/client/js/renderer/noderepr.js Thu Mar 31 17:12:55 2016 +0200
+++ b/client/js/renderer/noderepr.js Tue Apr 05 18:32:32 2016 +0200
@@ -143,13 +143,13 @@
this.circle.opacity = this.options.show_node_circles ? opacity : 0.01;
-
+
//strip html from title
var html = this.model.get("title");
var div = document.createElement("div");
div.innerHTML = html;
var clean_title = div.textContent || div.innerText || "";
-
+
var _text = clean_title || this.renkan.translate(this.options.label_untitled_nodes) || "";
_text = Utils.shortenText(_text, this.options.node_label_max_length);
@@ -226,7 +226,9 @@
} else {
_image = this.renderer.image_cache[this.img];
}
+ var _this = this;
if (_image.width) {
+
if (this.node_image) {
this.node_image.remove();
}
@@ -340,7 +342,6 @@
this.node_image.position = this.paper_coords.subtract(this.image_delta.multiply(this.circle_radius));
this.node_image.insertAbove(this.circle);
} else {
- var _this = this;
$(_image).on("load", function() {
_this.showImage();
});
@@ -470,7 +471,7 @@
this.title.css('opacity', this.options.ghost_opacity);
this.minimap_circle.opacity = this.options.ghost_opacity;
} else {
- this.minimap_circle.opacity = 1;
+ this.minimap_circle.opacity = 1;
this.hidden = false;
this.redraw();
}