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=dd0c01e75d957c9d4f5756dfc56702e3ca14f27b;p=scpubgit%2Fstemmaweb.git correct URLs for AJAX / img requests in stexaminer --- diff --git a/root/js/stexaminer.js b/root/js/stexaminer.js index fd7eade..0509c66 100644 --- a/root/js/stexaminer.js +++ b/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/root/src/stexaminer.tt b/root/src/stexaminer.tt index 2f1a117..50763ec 100644 --- a/root/src/stexaminer.tt +++ b/root/src/stexaminer.tt @@ -4,6 +4,8 @@ applicationstyle = c.uri_for('/css/stexaminer.css') %]