for already fleshed trees
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 14 Jul 2006 18:56:29 +0000 (18:56 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 14 Jul 2006 18:56:29 +0000 (18:56 +0000)
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

index 3a4eb27..ce0cde5 100644 (file)
@@ -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) {