Commit 2238acd557747b831ab246c4a59cb8d2a8c61368

Authored by Antonio Terceiro
2 parents 84003a1c 4812b285

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 2 fetch_sub_items = function(sub_items, category){
3 3 loading_for_button($("#category-loading-"+category)[0]);
4 4 $.ajax({
5   - url: "/admin/categories/get_children",
  5 + url: noosfero_root() + "/admin/categories/get_children",
6 6 dataType: "html",
7 7 data: {id: category},
8 8 success: function(data, st, ajax){
... ...