From 7fc08f89d36f242a484326d597be5d4198a19cf2 Mon Sep 17 00:00:00 2001 From: phasefx Date: Fri, 14 Jul 2006 18:56:29 +0000 Subject: [PATCH] for already fleshed trees git-svn-id: svn://svn.open-ils.org/ILS/trunk@5008 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/chrome/content/util/list.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Open-ILS/xul/staff_client/chrome/content/util/list.js b/Open-ILS/xul/staff_client/chrome/content/util/list.js index 3a4eb27379..ce0cde515b 100644 --- a/Open-ILS/xul/staff_client/chrome/content/util/list.js +++ b/Open-ILS/xul/staff_client/chrome/content/util/list.js @@ -427,8 +427,12 @@ util.list.prototype = { '_full_retrieve_tree' : function(params) { var obj = this; - var nodes = obj.treechildren.childNodes; - for (var i = 0; i < nodes.length; i++) util.widgets.dispatch('flesh',nodes[i]); + if (obj.all_fleshed) { + obj.all_fleshed = false; obj.all_fleshed = true; + } else { + var nodes = obj.treechildren.childNodes; + for (var i = 0; i < nodes.length; i++) util.widgets.dispatch('flesh',nodes[i]); + } }, '_append_to_listbox' : function (params) { -- 2.11.0