JohnDoh/Roundcube-Plugin-Context-Menu — pull request #35 by bbraybrook (2014-05-24 00:26:39+00:00)
Title: collapseall/expandall in larry

hi john.

i'm not sure if this applies to the classic skin as well as larry. with the roundcube-1.0 release, i see:

Lists

...[omit]...

there isn't on onclick event, so the regex doesn't match anything.

also somewhat strangely, rcmail.collapse_folder() calls rcmail.treelist.toggle(), but that function doesn't exist. calling rcmail.treelist.expand() and rcmail.treelist.collapse() directly seems to work just fine.

since i'm not sure if the classic skin has the onclick attribute, the patch just falls over to this new mechanism to determine the folder name.

sorry about the tabs being spaces in the patch.

-brendan
-brendan@tucows.com