Hi all, I've browsed a few of the public Galaxies to get an idea of what I like and don't like; I've noticed that some of the instances have an "accordion" behavior where when one of the tool sections is expanded, all others collapse. In galaxy main, you can have multiple tool sections open at once. I would prefer the accordion style... does anyone know where this is configured, or do I have to manually change the javascript call to jquery's slide function? Thanks! -Carrie
Carrie, Currently, you'd have to manually change the JavaScript to get this behavior. That said, this should probably be a user preference, unless there's a strong consensus toward the "accordion" style. Anyone else feel strongly about this or have a user base that feel strongly? Best, J. On Oct 11, 2012, at 1:36 PM, Ganote, Carrie L wrote:
Hi all,
I’ve browsed a few of the public Galaxies to get an idea of what I like and don’t like; I’ve noticed that some of the instances have an “accordion” behavior where when one of the tool sections is expanded, all others collapse. In galaxy main, you can have multiple tool sections open at once. I would prefer the accordion style… does anyone know where this is configured, or do I have to manually change the javascript call to jquery’s slide function?
Thanks! -Carrie ___________________________________________________________ Please keep all replies on the list by using "reply all" in your mail client. To manage your subscriptions to this and other Galaxy lists, please use the interface at:
Hi all! The "accordion" style would be very nice for me and my user base. Cheers, Sascha Original Message processed by CONSOLIDATE Subject: Re: [galaxy-dev] Tool Menu Behavior Sent: Donnerstag, 11. Oktober 2012 23:44 From: Jeremy Goecks (jeremy.goecks@emory.edu) Carrie, Currently, you?d have to manually change the JavaScript to get this behavior. That said, this should probably be a user preference, unless there?s a strong consensus toward the "accordion" style. Anyone else feel strongly about this or have a user base that feel strongly? Best, J. On Oct 11, 2012, at 1:36 PM, Ganote, Carrie L wrote: Hi all, I ve browsed a few of the public Galaxies to get an idea of what I like and don t like; I ve noticed that some of the instances have an accordion behavior where when one of the tool sections is expanded, all others collapse. In galaxy main, you can have multiple tool sections open at once. I would prefer the accordion style does anyone know where this is configured, or do I have to manually change the javascript call to jquery s slide function? Thanks! -Carrie ___________________________________________________________ Please keep all replies on the list by using "reply all" in your mail client. To manage your subscriptions to this and other Galaxy lists, please use the interface at: http://lists.bx.psu.edu/
Hi all, Here's what I did to put the accordion style into the tool menu: in the file galaxy/templates/root/tool_menu.mako as the last thing in the main function: <script> //Init. on document load $(function(){ .. .. //~~~here~~~ }); </script> I added the following (lifted lovingly from Genboree Galaxy): // Init showing/hiding of tool sections. $( "div.toolSectionBody" ).hide(); $( "div.toolSectionTitle > span" ).wrap( "<a href='#'></a>" ) var last_expanded = null; $( "div.toolSectionTitle" ).each( function() { var body = $(this).next( "div.toolSectionBody" ); $(this).click( function() { if ( body.is( ":hidden" ) ) { if ( last_expanded ) { last_expanded.slideUp( "fast" ); } last_expanded = body; body.slideDown( "fast" ); } else { body.slideUp( "fast" ); last_expanded = null; } return false; }); }); Note that this overrides the events:{ 'click..'} in the model/view/controller and so is undesirable, but I'm not familiar enough with Backbone to play by its rules. At least not on a Friday afternoon. Sincerely, -Carrie ________________________________ From: Sascha Kastens [s.kastens@gatc-biotech.com] Sent: Friday, October 12, 2012 3:11 AM Cc: jeremy.goecks@emory.edu; galaxy-dev@lists.bx.psu.edu; Ganote, Carrie L Subject: Re: [galaxy-dev] Tool Menu Behavior Hi all! The "accordion" style would be very nice for me and my user base. Cheers, Sascha Original Message processed by CONSOLIDATE <http://www.consolidate.at> Subject: Re: [galaxy-dev] Tool Menu Behavior Sent: Donnerstag, 11. Oktober 2012 23:44 From: Jeremy Goecks (jeremy.goecks@emory.edu<mailto:jeremy.goecks@emory.edu>) Carrie, Currently, you’d have to manually change the JavaScript to get this behavior. That said, this should probably be a user preference, unless there’s a strong consensus toward the "accordion" style. Anyone else feel strongly about this or have a user base that feel strongly? Best, J. On Oct 11, 2012, at 1:36 PM, Ganote, Carrie L wrote: Hi all, I’ve browsed a few of the public Galaxies to get an idea of what I like and don’t like; I’ve noticed that some of the instances have an “accordion” behavior where when one of the tool sections is expanded, all others collapse. In galaxy main, you can have multiple tool sections open at once. I would prefer the accordion style… does anyone know where this is configured, or do I have to manually change the javascript call to jquery’s slide function? Thanks! -Carrie ___________________________________________________________ Please keep all replies on the list by using "reply all" in your mail client. To manage your subscriptions to this and other Galaxy lists, please use the interface at: http://lists.bx.psu.edu/
participants (3)
-
Ganote, Carrie L
-
Jeremy Goecks
-
Sascha Kastens