[Rt-devel] Trigger hideshow onload

Robert Spier rspier at pobox.com
Fri May 13 01:26:01 EDT 2005


> I am looking to have some elements of Ticket/Display.html "collapsed"
> on load since they are not used often and I wish to conserve screen
> space for our techs.  Is there a way to have some of the elements
> display collapsed by default, or is my best bet to remove them from
> Display.html and make the techs use the links on the side tabs?

I'm pretty sure there's no nice way to do this right now, because of
the way the folding is implemented.

in html/Elements/TitleBoxStart the id's for the folding regions are
autogenerated.

There are two changes that would need to be made to allow for a CSS
file to set a default:
1- properly pass $class through as a parameter to TitleBoxStart.  (To
allow for unique, concrete names.)  (The infrastructure is there, its
just not used.)
2- add that class value to the TR which folds.

Then, you could have a class which defaults to hidden.  (CSS that sets
display: none.)

-R


More information about the Rt-devel mailing list