X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=root%2Fsrc%2Frelate.tt;h=016ae3877c014920bcafa58cf616b3e54854342c;hb=2d34519e7ea7d01377d355f858030a9faa5d014b;hp=f97c638af6b8bc4a7916516c1f68d8c0e49310fc;hpb=2baa2897361b57946789772107b4a4f5a6294961;p=scpubgit%2Fstemmaweb.git
diff --git a/root/src/relate.tt b/root/src/relate.tt
index f97c638..016ae38 100644
--- a/root/src/relate.tt
+++ b/root/src/relate.tt
@@ -12,16 +12,19 @@ var editable = "[% permission %]" === "full";
// URLs for images referenced in Javascript
var merge_button_yes = "[% c.uri_for( '/images/tick_circle_frame.png' ) %]";
var merge_button_no = "[% c.uri_for( '/images/no_entry.png' ) %]";
+// Constants used in Javascript that we get from the server
[% IF error -%]
var relationship_types = [];
var relationship_scopes = [];
+var ternary_values = [];
[% ELSE -%]
var relationship_types = [% relationship_types %];
var relationship_scopes = [% relationship_scopes %];
+var ternary_values = [% ternary_values %];
[% END -%]
$(document).ready(function () {
- loadSVG('[% svg_string %]');
+ loadSVG('[% svg_string %]', '[% direction %]');
});
[% END %]
@@ -66,12 +69,14 @@ $(document).ready(function () {
+
+
+
@@ -104,6 +109,22 @@ $(document).ready(function () {