make app portable through uri_base

This commit is contained in:
Oliver Gorwits
2012-01-15 23:09:43 +00:00
parent e2e032de18
commit c555fc9330
18 changed files with 59 additions and 54 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_base %]/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_base %]/device?' + query);
// enable collapser on any large vlan lists
$('.nd_collapse_vlans').collapser({

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_base %]/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_base %]/search?' + query);
}
);
}