From: Tara L Andrews Date: Fri, 7 Sep 2012 09:05:05 +0000 (+0200) Subject: correct URLs for AJAX / img requests in stexaminer X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=5f810e4ff0e03419a8ef49d63b6fce96eead1d01;p=scpubgit%2Fstemmatology.git correct URLs for AJAX / img requests in stexaminer --- diff --git a/stemmaweb/root/js/stexaminer.js b/stemmaweb/root/js/stexaminer.js index fd7eade..0509c66 100644 --- a/stemmaweb/root/js/stexaminer.js +++ b/stemmaweb/root/js/stexaminer.js @@ -5,12 +5,12 @@ var original_svg; function handle_row_click( row ) { var ridx = row.parent().parent().index() var rs = readingstats[ridx]; - var imghtml = 'Loading SVG...' + var imghtml = $('').attr( 'src', baseurl + "../images/ajax-loader.gif" ).attr( 'alt', "Loading SVG..." ); $('#stemma_graph').empty(); $('#stemma_graph').append( imghtml ); if( rs.layerwits ) { var stemma_form = { 'dot': graphdot, 'layerwits': rs.layerwits }; - $('#stemma_graph').load( '../graphsvg', stemma_form, function() { + $('#stemma_graph').load( baseurl + 'graphsvg', stemma_form, function() { color_row( row ); show_stats( rs ); }); diff --git a/stemmaweb/root/src/stexaminer.tt b/stemmaweb/root/src/stexaminer.tt index 2f1a117..50763ec 100644 --- a/stemmaweb/root/src/stexaminer.tt +++ b/stemmaweb/root/src/stexaminer.tt @@ -4,6 +4,8 @@ applicationstyle = c.uri_for('/css/stexaminer.css') %]