details: http://www.bx.psu.edu/hg/galaxy/rev/eb1244477b90 changeset: 2564:eb1244477b90 user: James Taylor <james@jamestaylor.org> date: Fri Aug 14 12:17:45 2009 -0400 description: Fix for library expand buttons in IE (even though the old way used to work, should work, and was tested). 1 file(s) affected in this change: templates/library/browse_library.mako diffs (26 lines): diff -r bfd2ee7bff9d -r eb1244477b90 templates/library/browse_library.mako --- a/templates/library/browse_library.mako Fri Aug 14 10:03:15 2009 -0400 +++ b/templates/library/browse_library.mako Fri Aug 14 12:17:45 2009 -0400 @@ -38,14 +38,21 @@ descendents = descendents.add( child_descendents ); }); // Set up expand / hide link + // HACK: assume descendents are invisible. The caller actually + // ensures this for the root node. However, if we start + // remembering folder states, we'll need something + // more sophisticated here. + var visible = false; $(q).find( "span.expandLink").click( function() { - if ( children.is( ":visible" ) ) { + if ( visible ) { descendents.hide(); descendents.removeClass( "expanded" ); q.removeClass( "expanded" ); + visible = false; } else { children.show(); q.addClass( "expanded" ); + visible = true; } }); // Check/uncheck boxes in subfolders.