I am using jsTree 3.0.2 and this fix does not work for me.
"i" , "", , , JSON, jsTree.

, , .
- , - ( ), jsTree, , node , .

getCustomMenu jsTree, jstree, .
$('#divReportsTree').jstree({
"core": {
'data': JSON.Results.core.data
},
"plugins": ["contextmenu"],
"contextmenu" : {
items: getCustomMenu
},
})
getCustomMenu :
function getCustomMenu(node) {
var thisReportID = node.li_attr.ReportID;
var items = {
Run: {
"separator_before": false,
"separator_after": true,
"label": "Run this report",
"icon": "/Images/Icons/Go.png",
"action": function (node, reportID) {
RunReport(node, thisReportID);
}
},
Refresh: {
"separator_before": false,
"separator_after": false,
"label": "Refresh",
"icon": "/Images/Icons/Refresh.png",
"action": function (node, reportID) {
RefreshReport(node, thisReportID);
}
};
if (node.li_attr.ReportID == null)
{
delete items.Run;
}
return items;
}
jstree, getCustomMenu RunReport .

, JSON, , ReportID jsTree li_attr.

getCustomMenu ( "RunReport", ), .
.
, ( !)