Hello,
I experienced a problem when trying to use an icon loading a tree data
via ajax and json format using pathname.
I followed the instructions described in online documentation on
http://www.jstree.com/documentation/json_data
I noticed that after being loaded, the html source of tree item
contains an empty style attribute; I also took a look at source code,
and saw that, just as documentation says, when a slash character is
encountered in icon key of json object this parameter is treated as a
pathname, building css code to set it as background image. But at that
point, for some reason, this operation fails.
I already checked that icon path in json object is correct.
Here is the json data that arrives to jstree
{"state": "closed", "data": {"icon": "/img/icons/tree/iconname",
"attr": {}, "title": "FACTORY"}, "attr": {"curnode": "example"}}
In the path for icon I also tried with dot notation, complete url,
everything, but result is the same.
If that's a bug, please let me know if it will fixed and
approximatively how long could it take.
Thanks
Regards
Marcello