client/js/paper-renderer.js
changeset 277 1a54f4e626df
parent 276 900467290a0a
child 278 b45dda454dd6
--- a/client/js/paper-renderer.js	Sat Apr 26 14:29:36 2014 +0200
+++ b/client/js/paper-renderer.js	Sat Apr 26 14:32:42 2014 +0200
@@ -2467,7 +2467,7 @@
                     this.addTempEdge(this.click_target, _point);
                     this.click_mode = _CLICKMODE_ENDEDGE;
                     this.notif_$.fadeOut(function() {
-                        $(this).html(_renkan.translate("Click on a second node to complete the edge")).fadeIn();
+                        $(this).html(this.renkan.translate("Click on a second node to complete the edge")).fadeIn();
                     });
                 } else {
                     this.notif_$.hide();
@@ -2545,7 +2545,7 @@
             case "twitter":
                 var snippet = $('<div>').html(_data["text/x-iri-selected-html"]),
                 tweetdiv = snippet.find(".tweet");
-                newNode.title = _renkan.translate("Tweet by ") + tweetdiv.attr("data-name");
+                newNode.title = this.renkan.translate("Tweet by ") + tweetdiv.attr("data-name");
                 newNode.uri = "http://twitter.com/" + tweetdiv.attr("data-screen-name") + "/status/" + tweetdiv.attr("data-tweet-id");
                 newNode.image = tweetdiv.find(".avatar").attr("src");
                 newNode.description = tweetdiv.find(".js-tweet-text:first").text();