diff -r f67047a16084 -r fba23fde14ba client/js/renderer/edgeeditor.js --- a/client/js/renderer/edgeeditor.js Fri May 16 12:37:51 2014 +0200 +++ b/client/js/renderer/edgeeditor.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(); /* EdgeEditor Begin */ @@ -11,29 +11,29 @@ _(EdgeEditor.prototype).extend({ template: _.template( - '

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

' - + '

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

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

<% } } %>' - + '<% if (options.show_edge_editor_color) { %>
<%-renkan.translate("Edge color:")%>
' - + '<%= renkan.colorPicker %><%- renkan.translate("Choose color") %>
<% } %>' - + '<% if (options.show_edge_editor_direction) { %>

<%- renkan.translate("Change edge direction") %>

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

<%-renkan.translate("From:")%><%- shortenText(edge.from_title, 25) %>

' - + '

<%-renkan.translate("To:")%><%- shortenText(edge.to_title, 25) %>

<% } %>' - + '<% if (options.show_edge_editor_creator && edge.has_creator) { %>

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

<% } %>' + '

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

' + + '

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

' + + '<% if (options.properties.length) { %>

<% } } %>' + + '<% if (options.show_edge_editor_color) { %>
<%-renkan.translate("Edge color:")%>
' + + '<%= renkan.colorPicker %><%- renkan.translate("Choose color") %>
<% } %>' + + '<% if (options.show_edge_editor_direction) { %>

<%- renkan.translate("Change edge direction") %>

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

<%-renkan.translate("From:")%><%- shortenText(edge.from_title, 25) %>

' + + '

<%-renkan.translate("To:")%><%- shortenText(edge.to_title, 25) %>

<% } %>' + + '<% if (options.show_edge_editor_creator && edge.has_creator) { %>

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

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

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

' - + '<% if (options.show_edge_tooltip_uri && edge.uri) { %>

<%-edge.short_uri%>

<% } %>' - + '

<%-edge.description%>

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

<%-renkan.translate("From:")%><%- shortenText(edge.from_title, 25) %>

' - + '

<%-renkan.translate("To:")%><%- shortenText(edge.to_title, 25) %>

<% } %>' - + '<% if (options.show_edge_tooltip_creator && edge.has_creator) { %>

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

<% } %>' + '

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

' + + '<% if (options.show_edge_tooltip_uri && edge.uri) { %>

<%-edge.short_uri%>

<% } %>' + + '

<%-edge.description%>

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

<%-renkan.translate("From:")%><%- shortenText(edge.from_title, 25) %>

' + + '

<%-renkan.translate("To:")%><%- shortenText(edge.to_title, 25) %>

<% } %>' + + '<% if (options.show_edge_tooltip_creator && edge.has_creator) { %>

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

<% } %>' ), draw: function() { var _model = this.source_representation.model, @@ -166,7 +166,7 @@ }); /* EdgeEditor End */ - + return EdgeEditor; -}); \ No newline at end of file +});