properly disable OK button
[scpubgit/stemmatology.git] / stemmaweb / root / js / componentload.js
index cc5c1d3..e881f84 100644 (file)
@@ -12,11 +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() {
-       var stemma_svg_element = $('#stemma_graph svg').svg().svg('get').root();
-       console.log( stemma_svg_element );
-       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;