Skip to content

Instantly share code, notes, and snippets.

@dataneek
Created July 12, 2016 04:07
Show Gist options
  • Save dataneek/0f583e8ca5ec44a63f9ac26f5ce5bee2 to your computer and use it in GitHub Desktop.
Save dataneek/0f583e8ca5ec44a63f9ac26f5ce5bee2 to your computer and use it in GitHub Desktop.
function getPaginableFilters() {
var result = [];
$('.paginable-filter').each(function () {
var filterType = $(this).data('filter-key');
$(':checkbox:checked', this).each(function () {
var item = {};
item["filterType"] = filterType;
item["value"] = $(this).val();
result.push(item);
});
})
return result;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment