From 90cea84af99e432942c3706fe8b341d718f376bf Mon Sep 17 00:00:00 2001 From: barisusakli Date: Wed, 21 May 2014 19:50:27 -0400 Subject: [PATCH] max 5 tags per topic asdasd --- public/src/modules/composer/tags.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/src/modules/composer/tags.js b/public/src/modules/composer/tags.js index 1a020b3dde..c9e26c6914 100644 --- a/public/src/modules/composer/tags.js +++ b/public/src/modules/composer/tags.js @@ -12,7 +12,9 @@ define(function() { return; } - tagEl.tagsinput(); + tagEl.tagsinput({ + maxTags: 5 // TODO: make configurable + }); addTags(postData.tags, tagEl); var input = postContainer.find('.bootstrap-tagsinput input');