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

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