Index: openacs-4/packages/ajax-filestorage-ui/www/xmlhttp/loadchildnodes.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/ajax-filestorage-ui/www/xmlhttp/Attic/loadchildnodes.tcl,v diff -u -r1.2 -r1.3 --- openacs-4/packages/ajax-filestorage-ui/www/xmlhttp/loadchildnodes.tcl 9 Dec 2006 17:21:26 -0000 1.2 +++ openacs-4/packages/ajax-filestorage-ui/www/xmlhttp/loadchildnodes.tcl 25 Dec 2006 16:23:26 -0000 1.3 @@ -1,7 +1,7 @@ ad_page_contract { Populates a parent node with its children. The folder id is passed to this via xmlhttp call. - + @author Hamilton Chua (ham@solutiongrove.com) @creation-date Feb 24, 2006 } { @@ -24,7 +24,7 @@ # verify if the folder has contents - if { [db_string "countcontent" ""] > 0 } { + if { [db_string "countcontent" ""] > 0 } { set dyn_load_script "loadDataForNode" } else { set dyn_load_script "" @@ -34,8 +34,8 @@ append script [ah::yui::create_tree_node -varname $object_id \ -label $name \ -treevarname "tree" \ - -href "javascript:showFolderContents('${object_id}',tree)" \ - -attach_to_node "$parentfolderid" \ + -href "javascript:showFolderContents('${object_id}',tree,'name')" \ + -attach_to_node $parentfolderid \ -dynamic_load $dyn_load_script ] }