search tags
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…
Reference in New Issue