search tags

v1.18.x
barisusakli 11 years ago
parent 1cabf885a2
commit 94dbb15b21

@ -0,0 +1,20 @@
'use strict';
/* globals define, app */
define('forum/tags', function() {
var Tags = {};
Tags.init = function() {
app.enterRoom('tags');
$('#tag-search').on('input propertychange', function() {
$('.tag-list a').each(function() {
var $this = $(this)
$this.toggleClass('hide', $this.attr('href').indexOf($('#tag-search').val()) === -1);
})
});
};
return Tags;
});
Loading…
Cancel
Save