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:
James Taylor
2009-08-14 12:17:45 -04:00
parent 32eeb4496c
commit 1b460feda2
+8 -1
View File
@@ -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.