mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-21 13:50:20 +08:00
merge
This commit is contained in:
@@ -120,6 +120,9 @@ class Grid( object ):
|
||||
column_filter = from_json_string_recurse( column_filter )
|
||||
if len( column_filter ) == 1:
|
||||
column_filter = column_filter[0]
|
||||
# If filter criterion is empty, do nothing.
|
||||
if column_filter == '':
|
||||
continue
|
||||
# Update query.
|
||||
query = column.filter( trans.sa_session, query, column_filter )
|
||||
# Upate current filter dict.
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 706 B |
@@ -62,6 +62,21 @@ ${self.grid_table()}
|
||||
|
||||
t2.autocomplete("${h.url_for( controller='history', action='name_autocomplete_data' )}", autocomplete_options);
|
||||
}
|
||||
|
||||
// Initialize submit image elements.
|
||||
$('.submit-image').each( function()
|
||||
{
|
||||
// On mousedown, add class to simulate click.
|
||||
$(this).mousedown( function() {
|
||||
$(this).addClass('gray-background');
|
||||
});
|
||||
|
||||
// On mouseup, add class to simulate click.
|
||||
$(this).mouseup( function() {
|
||||
$(this).removeClass('gray-background');
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
## Can this be moved into base.mako?
|
||||
%if refresh_frames:
|
||||
@@ -168,6 +183,26 @@ ${self.grid_table()}
|
||||
text-align: center;
|
||||
display: inline-block;
|
||||
}
|
||||
.submit-image {
|
||||
vertical-align: text-bottom;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
.no-padding-or-margin {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
.gray-background {
|
||||
background-color: #DDDDDD;
|
||||
}
|
||||
.text-filter-val {
|
||||
border: solid 1px #AAAAAA;
|
||||
padding: 1px 3px 1px 3px;
|
||||
margin-right: 5px;
|
||||
-moz-border-radius: .5em;
|
||||
-webkit-border-radius: .5em;
|
||||
font-style: italic;
|
||||
}
|
||||
</style>
|
||||
</%def>
|
||||
|
||||
|
||||
@@ -32,10 +32,11 @@
|
||||
<% column_filter = cur_filter_dict[column.key] %>
|
||||
%if isinstance( column_filter, basestring ):
|
||||
%if column_filter != "All":
|
||||
<span style="font-style: italic">${cur_filter_dict[column.key]}</span>
|
||||
<% filter_all = GridColumnFilter( "", { column.key : "All" } ) %>
|
||||
<a href="${url( filter_all.get_url_args() )}"><img src="${h.url_for('/static/images/delete_tag_icon_gray.png')}"/></a>
|
||||
|
|
||||
<span class='text-filter-val'>
|
||||
${cur_filter_dict[column.key]}
|
||||
<% filter_all = GridColumnFilter( "", { column.key : "All" } ) %>
|
||||
<a href="${url( filter_all.get_url_args() )}"><img src="${h.url_for('/static/images/delete_tag_icon_gray.png')}"/></a>
|
||||
</span>
|
||||
%endif
|
||||
%elif isinstance( column_filter, list ):
|
||||
%for i, filter in enumerate( column_filter ):
|
||||
@@ -53,7 +54,9 @@
|
||||
|
||||
%endif
|
||||
%endif
|
||||
<span><input id="input-${column.key}-filter" name="f-${column.key}" type="text" value="" size="15"/></span>
|
||||
<span>
|
||||
<input class="no-padding-or-margin" id="input-${column.key}-filter" name="f-${column.key}" type="text" value="" size="15"/>
|
||||
<input class='submit-image' type='image' src='${h.url_for('/static/images/mag_glass.png')}' alt='Filter'/></span>
|
||||
</form>
|
||||
%else:
|
||||
%for i, filter in enumerate( column.get_accepted_filters() ):
|
||||
|
||||
Reference in New Issue
Block a user