Skip to content

Node.js based forum software built for the modern web

search tags

barisusakli94dbb15b2142
diff --git a/public/src/forum/tags.js b/public/src/forum/tags.js
new file mode 100644
index 0000000000..49e8913f2f
--- /dev/null
+++ b/public/src/forum/tags.js
@@ -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;
+});