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); this.createTree(this);
} }
// Structure data for tree // Structure data for category tree
if(!jQuery.isArray(options)) { if(this._type == 'tree-cat' && !jQuery.isArray(options)) {
var data = {id:0,item:[]}; var data = {id:0,item:[]};
var stack = []; var stack = [];
for(var key in options) for(var key in options)