X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=root%2Fsrc%2Frelate.tt;h=9b4e350c2e0eafdd57f7113b3099c437407f91a9;hb=e4bdf6606498d358c80e45b8cee69250b3bee6d3;hp=f97c638af6b8bc4a7916516c1f68d8c0e49310fc;hpb=8e26de0f2079f2b952536a2be1af1ba159eba5c5;p=scpubgit%2Fstemmaweb.git
diff --git a/root/src/relate.tt b/root/src/relate.tt
index f97c638..9b4e350 100644
--- a/root/src/relate.tt
+++ b/root/src/relate.tt
@@ -12,12 +12,15 @@ 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 () {
@@ -74,6 +77,11 @@ $(document).ready(function () {
+
+
+
+
+