[Git][noosfero/noosfero][master] 2 commits: Fix JS behaviour to show categories when noosfero is in a subdir environment
Antonio Terceiro
gitlab at gitlab.com
Thu Jul 16 16:19:31 BRT 2015
Antonio Terceiro pushed to branch master at Noosfero / noosfero
Commits:
4812b285 by Gabriela Navarro at 2015-07-16T13:24:24Z
Fix JS behaviour to show categories when noosfero is in a subdir environment
Signed-off-by: Fabio Teixeira <fabio1079 at gmail.com>
Signed-off-by: Gabriela Navarro <navarro1703 at gmail.com>
- - - - -
2238acd5 by Antonio Terceiro at 2015-07-16T19:19:22Z
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
- - - - -
1 changed file:
- public/javascripts/manage-categories.js
Changes:
=====================================
public/javascripts/manage-categories.js
=====================================
--- a/public/javascripts/manage-categories.js
+++ b/public/javascripts/manage-categories.js
@@ -2,7 +2,7 @@
fetch_sub_items = function(sub_items, category){
loading_for_button($("#category-loading-"+category)[0]);
$.ajax({
- url: "/admin/categories/get_children",
+ url: noosfero_root() + "/admin/categories/get_children",
dataType: "html",
data: {id: category},
success: function(data, st, ajax){
View it on GitLab: https://gitlab.com/noosfero/noosfero/compare/84003a1cfb29f9b6c547e05d39bf1dafb3dec7ba...2238acd557747b831ab246c4a59cb8d2a8c61368
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20150716/8493716c/attachment.html>
More information about the Noosfero-dev
mailing list