summaryrefslogtreecommitdiff
path: root/templates/search.html
diff options
context:
space:
mode:
authoryvesf <yvesf@pinky.(none)>2010-11-24 22:41:28 +0100
committeryvesf <yvesf@pinky.(none)>2010-11-24 22:41:28 +0100
commitff87c6dcaa65c3b1ac366a0ce05b9d6ecf7445b6 (patch)
tree8dbd16b11546bf4a6a940b7c5f0a79d94dad48c9 /templates/search.html
parent9a1362c62fb52c125fd818a147e63c96c317081f (diff)
downloadbooksearch-ff87c6dcaa65c3b1ac366a0ce05b9d6ecf7445b6.tar.gz
booksearch-ff87c6dcaa65c3b1ac366a0ce05b9d6ecf7445b6.zip
proxy fixups
Diffstat (limited to 'templates/search.html')
-rw-r--r--templates/search.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/search.html b/templates/search.html
index 490cf75..dc4cfe8 100644
--- a/templates/search.html
+++ b/templates/search.html
@@ -13,7 +13,7 @@
var docnum = ui.newContent.find("p.docnum").text();
var term = ui.newContent.find("p.term").text();
/* load excerpt */
- jQuery.get('/excerpt/' + docnum + '/' + term,
+ jQuery.get("{{ url_for("do_excerpt", docnum=-9999, term="TERM") }}".replace("-9999", docnum).replace("TERM", term),
function(data) {
ui.newContent.children("div.excerpt").html(data);
}
@@ -21,9 +21,9 @@
/* update image preview */
var frontpage = jQuery(this).parent().parent().find("img.frontpage");
- frontpage.attr('src', '/static/ajax-loader.gif');
+ frontpage.attr('src', "{{ url_for("static", filename="ajax-loader.gif") }}");
frontpage.load(function() {
- frontpage.attr('src', '/page/image/' + docnum);
+ frontpage.attr('src', "{{ url_for("do_page_image",docnum=-9999) }}".replace("-9999", docnum));
});
/* scroll image preview */