Hi Danilo,
as a quick fix you could replace
--------------------------------------------------------------------------
$.each(parsedJson, function (i, item) {
        parsedJson[i].children = true;
        parsedJson[i].type = "root";
        parsedJson[i].a_attr = {
                "href" : that.baseURL +
"/bin/view/Main/SpaceIndex?space=" +
parsedJson[i].text
        }
})
--------------------------------------------------------------------------
with
--------------------------------------------------------------------------
for (var i = 0; i < parsedJson.length; i++) {
        parsedJson[i].children = true;
        parsedJson[i].type = "root";
        parsedJson[i].a_attr = {
                "href" : that.baseURL +
"/bin/view/Main/SpaceIndex?space=" +
parsedJson[i].text
        }
        if ($.inArray(parsedJson[i].text, ['Blog', 'XWiki',
'ColorThemes']) >= 0) {
                parsedJson.splice(i, 1);
                i--;
        }
}
--------------------------------------------------------------------------
Now the spaces 'Blog', 'XWiki', 'ColorThemes' won't be shown
in the tree.
You can extend the array list to your needs.
Regards,
Josef
Danilo Amaral de Oliveira wrote
  Hello People,
 I am trying to customize the jsTree extension because I want to show just
 the tree of a specific space that arenot blog posts.
 I have changed the query to avoid to show the posts and it is working
 well. Ok.
 I have start to understand the code and I have changed two parts in the
 code to show just a space:
 var parsedJson = JSON.parse(data, function (k, v)
 and
 $.each(parsedJson, function (i, item) {
 You can check the code here:
 
http://codeshare.io/sXGil
 As you can see here:
 
http://www.image-share.com/ipng-2529-45.html
 I could filter the spaces, however the containers and icons of the other
 folder still are showing in my page...
 I don’t know very much of javascript and I don’t know where to attack now,
 do you have some tip what functions I need to modify?
 Thank you!
 Danilo
 Grupo Energisa
 Danilo Oliveira
 Analista Suporte Aplicacao TI - DPTO CORP. DE INFRAESTR. TI
 e-mail:  
 
  danilo.oliveira@.com 
   | tel: (32) 3429-6342 | cel: (32) 8452-9478
 Esta mensagem contém informação confidencial. Se você a recebeu por
 engano, não divulgue ou copie seu conteúdo. Por favor, avise ao remetente
 imediatamente e apague-a do computador.
 Privileged and confidential. If this message has been received by mistake,
 do not disclose or copy its contents. Please notify sender and delete
 immediately.
 _______________________________________________
 users mailing list 
  users@ 
--
View this message in context:
http://xwiki.475771.n2.nabble.com/JsTree-Extension-tp7590242p7590246.html
Sent from the XWiki- Users mailing list archive at 
Nabble.com.