Fix tool configuration reload for changes in 5f6c670.

This commit is contained in:
Dave Bouvier
2014-01-15 08:54:33 -05:00
parent 0a9f96e41a
commit 37eb8a5b39
+4 -3
View File
@@ -1,5 +1,6 @@
<%inherit file="/base.mako"/>
<%namespace file="/message.mako" import="render_msg" />
<% from galaxy.tools import Tool, ToolSection %>
<script type="text/javascript">
$().ready(function() {
@@ -26,13 +27,13 @@ $().ready(function() {
</label>
<select name="tool_id">
%for key, val in toolbox.tool_panel.items():
%if key.startswith( 'tool' ):
%if isinstance( val, Tool ):
<option value="${val.id}">${val.name}</option>
%elif key.startswith( 'section' ):
%elif isinstance( val, ToolSection ):
<optgroup label="${val.name}">
<% section = val %>
%for section_key, section_val in section.elems.items():
%if section_key.startswith( 'tool' ):
%if isinstance( section_val, Tool ):
<% selected_str = "" %>
%if section_val.id == tool_id:
<% selected_str = " selected=\"selected\"" %>