Skip to content

Commit

Permalink
Allows filtering form field to be selected.
Browse files Browse the repository at this point in the history
Fixes bug 1017856.

Change-Id: I8210b5c735acbe06b9ec615e03028ba585d04bca
  • Loading branch information
gabrielhurley committed Jul 5, 2012
1 parent df10657 commit f5d89c3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions horizon/static/horizon/js/horizon.tables.js
Expand Up @@ -164,16 +164,16 @@ horizon.datatables.set_table_sorting = function (parent) {
// Function to initialize the tablesorter plugin strictly on sortable columns.
$(parent).find("table.table").each(function () {
var $this = $(this),
options = {};
header_options = {};
$this.find("thead th").each(function (i, val) {
// Disable if not sortable or has <= 1 item
if (!$(this).hasClass('sortable') ||
$this.find('tbody tr').not('.empty').length <= 1) {
options[i] = {sorter: false};
if (!$(this).hasClass('sortable') || $this.find('tbody tr').not('.empty').length <= 1) {
header_options[i] = {sorter: false};
}
});
$this.tablesorter({
headers: options
headers: header_options,
cancelSelection: false
});
});
};
Expand Down

0 comments on commit f5d89c3

Please sign in to comment.