mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Fix for library expand buttons in IE (even though the old way used to work, should work, and was tested).
This commit is contained in:
@@ -38,14 +38,21 @@ class RowCounter( object ):
|
||||
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.
|
||||
|
||||
Reference in New Issue
Block a user