Created
July 12, 2016 04:07
-
-
Save dataneek/0f583e8ca5ec44a63f9ac26f5ce5bee2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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