Only do fancy parsing for category tree

This commit is contained in:
Nathan Gray 2013-02-11 15:16:23 +00:00
parent 2a03b988d2
commit 9181d6c526

View File

@ -174,8 +174,8 @@ var et2_tree = et2_inputWidget.extend({
this.createTree(this);
}
// Structure data for tree
if(!jQuery.isArray(options)) {
// Structure data for category tree
if(this._type == 'tree-cat' && !jQuery.isArray(options)) {
var data = {id:0,item:[]};
var stack = [];
for(var key in options)