X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=stemmaweb%2Froot%2Fjs%2Fcomponentload.js;fp=stemmaweb%2Froot%2Fjs%2Fcomponentload.js;h=e881f840f4f1e61dd04479b243f42cb1f1b676e1;hb=5a7e26a907032c98237756247791aa569487e7d7;hp=01663da7497c1d22b9103a47f395a1c350d67dcf;hpb=679f17e1a60a81370df8cbb49b94a2b5d19e3a98;p=scpubgit%2Fstemmatology.git diff --git a/stemmaweb/root/js/componentload.js b/stemmaweb/root/js/componentload.js index 01663da..e881f84 100644 --- a/stemmaweb/root/js/componentload.js +++ b/stemmaweb/root/js/componentload.js @@ -12,12 +12,7 @@ function loadTradition( textid, textname ) { // Then get and load the actual content. // TODO: scale #stemma_grpah both horizontally and vertically // TODO: load svgs from SVG.Jquery (to make scaling react in Safari) - $('#stemma_graph').load( basepath + "/stemma/" + textid , function() { - if( $('#stemma_graph svg').size() != 0 ) { - var stemma_svg_element = $('#stemma_graph svg').svg().svg('get').root(); - stemma_svg_element.height.baseVal.value = $('#stemma_graph').height(); - } - }); + $('#stemma_graph').load( basepath + "/stemma/" + textid ); $('#variant_graph').load( basepath + "/variantgraph/" + textid , function() { var variant_svg_element = $('#variant_graph svg').svg().svg('get').root(); var svg_height = variant_svg_element.height.baseVal.value;