Commit 2238acd557747b831ab246c4a59cb8d2a8c61368
Exists in
master
and in
29 other branches
Merge branch 'fix_javascript_categories' into 'master'
Fix JS behaviour to show categories when noosfero is in a subdir environment The admin page to edit or remove a category breaks when noosfero is a subdir app. We are using the method to get the Noosfero.root to add to the address See merge request !624
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
public/javascripts/manage-categories.js
@@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
2 | fetch_sub_items = function(sub_items, category){ | 2 | fetch_sub_items = function(sub_items, category){ |
3 | loading_for_button($("#category-loading-"+category)[0]); | 3 | loading_for_button($("#category-loading-"+category)[0]); |
4 | $.ajax({ | 4 | $.ajax({ |
5 | - url: "/admin/categories/get_children", | 5 | + url: noosfero_root() + "/admin/categories/get_children", |
6 | dataType: "html", | 6 | dataType: "html", |
7 | data: {id: category}, | 7 | data: {id: category}, |
8 | success: function(data, st, ajax){ | 8 | success: function(data, st, ajax){ |