make app portable through uri_base
This commit is contained in:
@@ -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({
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user