diff --git a/lib/galaxy/web/framework/helpers/grids.py b/lib/galaxy/web/framework/helpers/grids.py
index 16af3ff17ff..cae39b8fb75 100644
--- a/lib/galaxy/web/framework/helpers/grids.py
+++ b/lib/galaxy/web/framework/helpers/grids.py
@@ -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.
diff --git a/static/images/mag_glass.png b/static/images/mag_glass.png
new file mode 100644
index 00000000000..61a9e338195
Binary files /dev/null and b/static/images/mag_glass.png differ
diff --git a/templates/grid_base.mako b/templates/grid_base.mako
index 5436415be80..3f1b1b6687a 100644
--- a/templates/grid_base.mako
+++ b/templates/grid_base.mako
@@ -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;
+ }
%def>
diff --git a/templates/grid_common.mako b/templates/grid_common.mako
index 3742a5e3427..e0591dbce22 100644
--- a/templates/grid_common.mako
+++ b/templates/grid_common.mako
@@ -32,10 +32,11 @@
<% column_filter = cur_filter_dict[column.key] %>
%if isinstance( column_filter, basestring ):
%if column_filter != "All":
- ${cur_filter_dict[column.key]}
- <% filter_all = GridColumnFilter( "", { column.key : "All" } ) %>
-
- |
+
+ ${cur_filter_dict[column.key]}
+ <% filter_all = GridColumnFilter( "", { column.key : "All" } ) %>
+
+
%endif
%elif isinstance( column_filter, list ):
%for i, filter in enumerate( column_filter ):
@@ -53,7 +54,9 @@
%endif
%endif
-
+
+
+
%else:
%for i, filter in enumerate( column.get_accepted_filters() ):