diff --git a/app/assets/javascripts/discourse/helpers/max-usernames.js.es6 b/app/assets/javascripts/discourse/helpers/max-usernames.js.es6 deleted file mode 100644 index 68d002db8fe..00000000000 --- a/app/assets/javascripts/discourse/helpers/max-usernames.js.es6 +++ /dev/null @@ -1,10 +0,0 @@ -import { registerUnbound } from 'discourse-common/lib/helpers'; - -registerUnbound('max-usernames', function(usernames, params) { - var maxLength = parseInt(params.max) || 3; - if (usernames.length > maxLength){ - return usernames.slice(0, maxLength).join(", ") + ", +" + (usernames.length - maxLength); - } else { - return usernames.join(", "); - } -}); diff --git a/app/assets/javascripts/discourse/templates/user-selector-autocomplete.raw.hbs b/app/assets/javascripts/discourse/templates/user-selector-autocomplete.raw.hbs index 28d76c43ccb..793e4f3aa34 100644 --- a/app/assets/javascripts/discourse/templates/user-selector-autocomplete.raw.hbs +++ b/app/assets/javascripts/discourse/templates/user-selector-autocomplete.raw.hbs @@ -1,8 +1,8 @@ -
+