X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=stemmaweb%2Froot%2Fjs%2Frelationship.js;h=64bd041b7d88245d1740a59f5975c150c973b230;hb=679f17e1a60a81370df8cbb49b94a2b5d19e3a98;hp=414b78c31ce73f5daa47fef16c58526433332d7c;hpb=9ca77245542006700d30e6e32f33dd445e50947a;p=scpubgit%2Fstemmatology.git diff --git a/stemmaweb/root/js/relationship.js b/stemmaweb/root/js/relationship.js index 414b78c..64bd041 100644 --- a/stemmaweb/root/js/relationship.js +++ b/stemmaweb/root/js/relationship.js @@ -21,6 +21,8 @@ function getRelationshipURL() { } function svgEnlargementLoaded() { + //Give some visual evidence that we are working + $('#loading_overlay').show(); //Set viewbox widht and height to widht and height of $('#svgenlargement svg'). //This is essential to make sure zooming and panning works properly. $('#svgenlargement ellipse').attr( {stroke:'green', fill:'#b3f36d'} ); @@ -42,6 +44,7 @@ function svgEnlargementLoaded() { //used to calculate min and max zoom level: start_element_height = $("#svgenlargement .node title:contains('#START#')").siblings('ellipse')[0].getBBox().height; add_relations(); + // $('#loading_overlay').hide(); } function add_relations() {