From 9181d6c52677f9cfb8bc821cf6e1445b8f53ecdb Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 11 Feb 2013 15:16:23 +0000 Subject: [PATCH] Only do fancy parsing for category tree --- etemplate/js/et2_widget_tree.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etemplate/js/et2_widget_tree.js b/etemplate/js/et2_widget_tree.js index 573f74766d..4faf42c614 100644 --- a/etemplate/js/et2_widget_tree.js +++ b/etemplate/js/et2_widget_tree.js @@ -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)