fixed tags page search

This commit is contained in:
barisusakli
2014-07-24 11:57:34 -04:00
parent fa8fcc00ec
commit 3557aa2f9a

View File

@@ -9,9 +9,9 @@ define('forum/tags', function() {
app.enterRoom('tags');
$('#tag-search').on('input propertychange', function() {
$('.tag-list a').each(function() {
var $this = $(this)
$this.toggleClass('hide', $this.attr('data-value').indexOf($('#tag-search').val()) === -1);
$('.tag-list').children().each(function() {
var $this = $(this);
$this.toggleClass('hide', $this.find('a').attr('data-value').indexOf($('#tag-search').val()) === -1);
})
});
};