forked from GithubBackups/healthchecks
Use $.attr() for reading data-tags value, as $.data() can do unwanted conversions. Fixes #161
This commit is contained in:
parent
7cd33188ab
commit
61191d1cb9
@ -211,7 +211,9 @@ $(function () {
|
||||
}
|
||||
|
||||
function applyFilters(index, element) {
|
||||
var tags = $(".my-checks-name", element).data("tags").split(" ");
|
||||
// use attr(), as data() tries converting strings to JS types:
|
||||
// (e.g., "123" -> 123)
|
||||
var tags = $(".my-checks-name", element).attr("data-tags").split(" ");
|
||||
for (var i=0, tag; tag=checked[i]; i++) {
|
||||
if (tags.indexOf(tag) == -1) {
|
||||
$(element).hide();
|
||||
|
Loading…
x
Reference in New Issue
Block a user