From 9dc6adfdcc0478d55e83bac9690eef0d3b2363b8 Mon Sep 17 00:00:00 2001 From: Daniel Kinzler Date: Sat, 13 Jun 2009 07:37:34 +0000 Subject: [PATCH] fixed: 18203 CategoryTree js-generated expand links always hidden; patch by RockMFR; sorry it took so long --- CategoryTree.js | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/CategoryTree.js b/CategoryTree.js index 7a2d95c8..ad1e56cf 100644 --- a/CategoryTree.js +++ b/CategoryTree.js @@ -142,17 +142,21 @@ var categoryTreeRetryMsg = "Please wait a moment and try again."; result = result.replace(/##LOAD##/g, categoryTreeExpandMsg); div.innerHTML= result; + + categoryTreeShowToggles(); } var opt = categoryTreeEncodeValue(options); sajax_do_call( "efCategoryTreeAjaxWrapper", [cat, opt, 'json'] , f ); } - - // Re-show the CategoryTreeToggles. - addOnloadHook( function() { - var toggles = getElementsByClassName( document, 'span', 'CategoryTreeToggle' ); - - for( var i = 0; i