app/assets/javascripts/activegrid.js in activegrid-1.0.3 vs app/assets/javascripts/activegrid.js in activegrid-1.0.4
- old
+ new
@@ -53,19 +53,19 @@
order = field + (newDirection == "asc" ? "" : " DESC");
updateTable();
});
// Filtering
- $(":input[data-activegrid-filter=true]", table).keyup(function() {
+ $("input[data-activegrid-filter=true]", table).keyup(function() {
var self = $(this);
var field = self.attr("data-activegrid-filter-field");
filterField = field;
filterValue = self.val();
updateTable();
});
- $(":select[data-activegrid-filter=true]", table).change(function() {
+ $("select[data-activegrid-filter=true]", table).change(function() {
var self = $(this);
var field = self.attr("data-activegrid-filter-field");
filterField = field;
filterValue = self.val();