fix json request to use script root

This commit is contained in:
James Turk 2011-09-30 17:18:49 -04:00
parent 5247350524
commit 7c8363056d

View File

@ -9,7 +9,7 @@ oyster
var REFRESH = 5000; var REFRESH = 5000;
var MAX_ROWS = 100; var MAX_ROWS = 100;
setInterval(function() { setInterval(function() {
jQuery.getJSON('/?json', function(data) { jQuery.getJSON('{{request.script_root}}/?json', function(data) {
jQuery('#tracking_val').text(data.tracking); jQuery('#tracking_val').text(data.tracking);
jQuery('#need_update_val').text(data.need_update); jQuery('#need_update_val').text(data.need_update);
var latest_link = jQuery('tr td a')[0]['href'].split('/tracked/')[1]; var latest_link = jQuery('tr td a')[0]['href'].split('/tracked/')[1];