diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-03-05 01:22:27 +0000 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-03-05 01:22:27 +0000 |
commit | 46b752cbc77389772fc4d862a2bc9768c3ab5b40 (patch) | |
tree | ff916e06205975e1caf9e61cb61e556590e91b7c /modules/server_add/js/admin.js | |
parent | 1fa05f1093957e47f00165f89ae431493ed36813 (diff) |
Change how the urls are built in the java script
Diffstat (limited to 'modules/server_add/js/admin.js')
-rw-r--r-- | modules/server_add/js/admin.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/server_add/js/admin.js b/modules/server_add/js/admin.js index 15f0f57c..c9654410 100644 --- a/modules/server_add/js/admin.js +++ b/modules/server_add/js/admin.js @@ -9,8 +9,8 @@ $("document").ready(function() { }); function add_autocomplete() { - $("#gServerAddAdmin input:text").autocomplete(base_url + "admin/server_add/autocomplete", - {max: 256}); + $("#gServerAddAdmin input:text").autocomplete( + base_url.replace("__ARGS__", "admin/server_add/autocomplete"), {max: 256}); } function ajaxify_add_form(options) { $("#gServerAddAdmin form").ajaxForm({ @@ -34,7 +34,7 @@ function add_onclick() { $(".gRemoveDir").click(function() { var parent = $(this).parent(); $.post( - base_url + "admin/local_import/remove_path", + base_url.replace("__ARGS__", "admin/local_import/remove_path"), {csrf: csrf, path: parent.text().replace(/^\s\s*/, "").replace(/\s\s*$/, "")}, function(data, textStatus) { |