diff -r f67047a16084 -r fba23fde14ba client/js/renderer/nodeeditor.js --- a/client/js/renderer/nodeeditor.js Fri May 16 12:37:51 2014 +0200 +++ b/client/js/renderer/nodeeditor.js Fri May 16 14:09:57 2014 +0200 @@ -1,7 +1,7 @@ -"use strict"; define(['jquery', 'underscore', 'requtils', 'renderer/baseeditor'], function ($, _, requtils, BaseEditor) { - + 'use strict'; + var Utils = requtils.getUtils(); /* NodeEditor Begin */ @@ -10,26 +10,26 @@ _(NodeEditor.prototype).extend({ template: _.template( - '

×<%-renkan.translate("Edit Node")%>

' - + '

' - + '<% if (options.show_node_editor_uri) { %>

<% } %>' - + '<% if (options.show_node_editor_description) { %>

<% } %>' - + '<% if (options.show_node_editor_size) { %>

<%-renkan.translate("Size:")%>-<%-node.size%>+

<% } %>' - + '<% if (options.show_node_editor_color) { %>
<%-renkan.translate("Node color:")%>
' - + '<%= renkan.colorPicker %><%- renkan.translate("Choose color") %>
<% } %>' - + '<% if (options.show_node_editor_image) { %>
' - + '<% if (node.clip_path) { %><% }%>' - + '

' - + '

<% } %>' - + '<% if (options.show_node_editor_creator && node.has_creator) { %>

<%-renkan.translate("Created by:")%> <%- shortenText(node.created_by_title, 25) %>

<% } %>' + '

×<%-renkan.translate("Edit Node")%>

' + + '

' + + '<% if (options.show_node_editor_uri) { %>

<% } %>' + + '<% if (options.show_node_editor_description) { %>

<% } %>' + + '<% if (options.show_node_editor_size) { %>

<%-renkan.translate("Size:")%>-<%-node.size%>+

<% } %>' + + '<% if (options.show_node_editor_color) { %>
<%-renkan.translate("Node color:")%>
' + + '<%= renkan.colorPicker %><%- renkan.translate("Choose color") %>
<% } %>' + + '<% if (options.show_node_editor_image) { %>
' + + '<% if (node.clip_path) { %><% }%>' + + '

' + + '

<% } %>' + + '<% if (options.show_node_editor_creator && node.has_creator) { %>

<%-renkan.translate("Created by:")%> <%- shortenText(node.created_by_title, 25) %>

<% } %>' ), readOnlyTemplate: _.template( - '

×<% if (options.show_node_tooltip_color) { %><% } %>' - + '<% if (node.uri) { %><% } %><%-node.title%><% if (node.uri) { %><% } %>

' - + '<% if (node.uri && options.show_node_tooltip_uri) { %>

<%-node.short_uri%>

<% } %>' - + '<% if (options.show_node_tooltip_description) { %>

<%-node.description%>

<% } %>' - + '<% if (node.image && options.show_node_tooltip_image) { %><% } %>' - + '<% if (node.has_creator && options.show_node_tooltip_creator) { %>

<%-renkan.translate("Created by:")%><%- shortenText(node.created_by_title, 25) %>

<% } %>' + '

×<% if (options.show_node_tooltip_color) { %><% } %>' + + '<% if (node.uri) { %><% } %><%-node.title%><% if (node.uri) { %><% } %>

' + + '<% if (node.uri && options.show_node_tooltip_uri) { %>

<%-node.short_uri%>

<% } %>' + + '<% if (options.show_node_tooltip_description) { %>

<%-node.description%>

<% } %>' + + '<% if (node.image && options.show_node_tooltip_image) { %><% } %>' + + '<% if (node.has_creator && options.show_node_tooltip_creator) { %>

<%-renkan.translate("Created by:")%><%- shortenText(node.created_by_title, 25) %>

<% } %>' ), draw: function() { var _model = this.source_representation.model, @@ -196,14 +196,14 @@ }, redraw: function() { var _coords = this.source_representation.paper_coords; - Utils.drawEditBox(this.options, _coords, this.editor_block, this.source_representation.circle_radius * .75, this.editor_$); + Utils.drawEditBox(this.options, _coords, this.editor_block, this.source_representation.circle_radius * 0.75, this.editor_$); this.editor_$.show(); paper.view.draw(); } }); /* NodeEditor End */ - + return NodeEditor; -}); \ No newline at end of file +});