mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-25 10:24:38 +08:00
Expanding menus in workflow, fix layout bug (bold everywhere!), mark multi
page tools as not compatible with workflow.
This commit is contained in:
@@ -468,6 +468,10 @@ class Tool:
|
||||
Determine if a tool can be used in workflows. External tools and the
|
||||
upload tool are currently not supported by workflows.
|
||||
"""
|
||||
# Multiple page tools are not supported -- we're eliminating most
|
||||
# of these anyway
|
||||
if self.has_multiple_pages:
|
||||
return False
|
||||
# This is probably the best bet for detecting external web tools
|
||||
# right now
|
||||
if self.action != "/tool_runner/index":
|
||||
|
||||
@@ -112,6 +112,25 @@ $( function() {
|
||||
return "There are unsaved changes to your workflow which will be lost.";
|
||||
}
|
||||
}
|
||||
|
||||
// Tool menu
|
||||
$( "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;
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
function notify() {
|
||||
@@ -321,7 +340,7 @@ div.toolFormRow {
|
||||
|
||||
<div id="masthead">
|
||||
<div style="float: right; color: black; padding: 3px;"><div class="warningmessagesmall" style="min-height: 15px;">Workflow support is currently in <b><i>beta</i></b></div></div>
|
||||
<div class="title"><b>Galaxy workflow editor</div>
|
||||
<div class="title"><b>Galaxy workflow editor</b></div>
|
||||
## <iframe name="galaxy_masthead" src="${h.url_for( controller='root', action='masthead' )}" width="38" height="100%" frameborder="0" scroll="no" style="margin: 0; border: 0 none; width: 100%; height: 38px; overflow: hidden;"> </iframe>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user