X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=root%2Fsrc%2Frelate.tt;h=e46c5dec28f9e640ce7604ac6922d4b6cee56915;hb=0a326d3fc5d71491b8c62336bc89db0835b2f29b;hp=027663cacd22e6b49921b62593bb9c6e3f811dbb;hpb=51ca18ee409cde7cd9d70c147001294ec68006ca;p=scpubgit%2Fstemmaweb.git diff --git a/root/src/relate.tt b/root/src/relate.tt index 027663c..e46c5de 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 () { @@ -27,7 +30,7 @@ $(document).ready(function () { [% END %]

Relationship mapper

@@ -66,12 +69,14 @@ $(document).ready(function () {

+

+ +

@@ -120,15 +125,6 @@ $(document).ready(function () {


- -
- - - -
@@ -155,4 +151,4 @@ $(document).ready(function () {
-[% PROCESS footer.tt %] \ No newline at end of file +[% PROCESS footer.tt %]