Hi
Thanks for a very useful module
I would like to have wefm file tree expanded on load. I had a look at webfm.js and found this part of the code
---------------------
Webfm.tree = function(parent, treeIdx, root_menu, dir_menu) {
var wt = this;
this.id = 'dirtree' + treeIdx;
this.treeIdx = treeIdx;
this.icondir = getWebfmIconDir();
this.content = '';
this.expAllData = [['collapse', 'minus', 'block'], ['expand', 'plus', 'none']];
// Set tree exp/collapse behaviour on load (0 = expanded, 1 = collapsed)
this.expAllIndex = 1;
this.root_menu = root_menu;
this.dir_menu = dir_menu;
this.eventListeners = []
-----------------------------------------------------
I changed the expAllIndex = 0 but this did not work for me. Of course I could be doing the wrong thing in the wrong place. I would appreciate some assistance on this.
Thanks
Bruce Andersen
Using Firefox 3.5.7 if that makes any difference and the site is on a Windows server.

Comments

nhck’s picture

Status: Active » Closed (won't fix)

As per #803722: Cease support of Drupal 5? support for D4 and D5 has been closed. Sorry, please upgrade to Drupal 6. If you think this issue still applies with Version 6.x please reopen this issue with correct version tag.

Thank you! :-)

mdallmeyer’s picture

Version: 5.x-2.15 » 6.x-2.18

Changing 1 to 0 still didn't make the folder expand by default for me in 6.x.

Nevermind, just had to clear my cache. Thanks!