as insertObject (called by treeObj.addObject) expects id to be either string or object, we cast the option.id in case its a number

This commit is contained in:
Klaus Leithoff 2013-08-01 09:54:32 +00:00
parent 3afd9aaa18
commit a69df51eaa

View File

@ -345,7 +345,7 @@ var et2_tree = et2_inputWidget.extend(
var apply_actions = function(treeObj, option)
{
// Add a new action object to the object manager
var obj = treeObj.addObject(option.id, new dhtmlxtreeItemAOI(this.input, option.id));
var obj = treeObj.addObject((typeof option.id == 'number'?String(option.id):option.id), new dhtmlxtreeItemAOI(this.input, option.id));
obj.updateActionLinks(action_links);
if(option.item && option.item.length > 0)