make dynamic content portable using uri_for

This commit is contained in:
Oliver Gorwits
2012-01-18 14:45:53 +00:00
parent b2adf9d839
commit 266faacfe0
16 changed files with 48 additions and 43 deletions

View File

@@ -18,7 +18,7 @@
);
// submit the query and put results into the tab pane
$(target).load( '/ajax/content/search/' + tab + '?' + query,
$(target).load( '[% uri_for('/ajax/content/search') %]/' + tab + '?' + query,
function(response, status, xhr) {
if (status !== "success") {
$(target).html(
@@ -33,7 +33,7 @@
);
}
// looks good, update the bookmark for this search
$(mark).attr('href', '/search?' + query);
$(mark).attr('href', '[% uri_for('/search') %]?' + query);
}
);
}