-
Notifications
You must be signed in to change notification settings - Fork 375
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multi-filtering: Tiles arrangement not working after jquery "keyup" #225
Comments
Hi, anyone facing the same issue or just available to help me figuring this out?
Should be something very simple, but I can't sort this out. Any help would be much appreciated. |
Hi, $('#box').keyup(function() {
var val = $(this).val().toLowerCase();
wall.reset({
selector: '.brick',
onBlockReady: function(block, setting) {
var text = $(this).text().toLowerCase();
if (text.indexOf(val) != -1) {
//show block;
$(this).data('active', 1);
} else {
// hide block;
$(this).data('active', 0);
}
}
});
}); onBlockRead: https://github.com/kombai/freewall/blob/master/freewall.js#L164 https://github.com/kombai/freewall/blob/master/freewall.js#L1062 |
Hi Minh,
Hope it will help someone else as well. |
Hi,
I am implementing multiple filter and sorting checkbox menus for Freewall, a sort of simultaneous filtering menu for a portfolio. Specifically for a text-based filtering, using the jquery keyup function, the filtered tiles (the ones not hidden) are returned in the original position and not re-arranged to the top.
Similar issue to this (#129) and this (#13), so I tried to include also the suggested "wall.reset", but without success. Here the code I am playing around:
Any advise?
thanks and sorry for my poor js knowledge.
fede
The text was updated successfully, but these errors were encountered: