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=c9e3175305d52e6c0628f785ea11444dbeb4207e;hb=56455620e2e89a240af0ad23d4fc0cc211b3ccf9;hp=e05e5c5016e7ed06ab56f437277dff534359c8ce;hpb=a344ffcf67e33abd15e20253f9c24baebbe0aa04;p=scpubgit%2Fstemmatology.git diff --git a/stemmaweb/root/js/componentload.js b/stemmaweb/root/js/componentload.js index e05e5c5..c9e3175 100644 --- a/stemmaweb/root/js/componentload.js +++ b/stemmaweb/root/js/componentload.js @@ -1,5 +1,11 @@ function loadTradition( textid ) { - + // First insert the placeholder image + var imghtml = 'Loading SVG...' + $('#stemma_graph').empty(); + $('#variant_graph').empty(); + $('#stemma_graph').append( imghtml ); + $('#variant_graph').append( imghtml ); + // 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( "stemma/" + textid , function() {