I'm trying to use listjs filter possibilites, but instead of listing buttons one by one and writing separate functions I need them to be created with Wordpress loop and everything works except item.values().batch
is always the same value and somewhy it doesn't go through the
if (item.values().batch == value ) {
return true;
console.log("True");
} else {
return false;
console.log("False");
}
as I never get "True" or "False" printed in console, but the value of (this) changes perfectly.
(Gets a error in JS Fiddle that doesn't appear in the original code ran on Wordpress)
Aucun commentaire:
Enregistrer un commentaire