details: http://www.bx.psu.edu/hg/galaxy/rev/ff4b7ca79092 changeset: 2560:ff4b7ca79092 user: James Taylor <james@jamestaylor.org> date: Thu Aug 13 12:03:25 2009 -0400 description: Resolve issue #129, 'library view jumps to top upon node expansion' 1 file(s) affected in this change: templates/library/browse_library.mako diffs (21 lines): diff -r 50a38a294296 -r ff4b7ca79092 templates/library/browse_library.mako --- a/templates/library/browse_library.mako Thu Aug 13 11:43:46 2009 -0400 +++ b/templates/library/browse_library.mako Thu Aug 13 12:03:25 2009 -0400 @@ -38,16 +38,14 @@ descendents = descendents.add( child_descendents ); }); // Set up expand / hide link - $(q).find( "span.expandLink").wrap( "<a href='#' class='expandLink'></a>" ).click( function() { + $(q).find( "span.expandLink").click( function() { if ( children.is( ":visible" ) ) { descendents.hide(); descendents.removeClass( "expanded" ); q.removeClass( "expanded" ); - // expanded = false; } else { children.show(); q.addClass( "expanded" ); - // expanded = true; } }); // Check/uncheck boxes in subfolders.