fix pluralization in initial populate

This commit is contained in:
Josh 2017-06-12 10:52:00 -04:00
parent 31f0e0a3e9
commit b1e65e4ca7
1 changed files with 2 additions and 1 deletions

View File

@ -74,7 +74,8 @@ isPreviouslyJoined = function(meeting){
renderActiveMeeting = function(m){ renderActiveMeeting = function(m){
var meeting_item = $('<li id = ' + m['name'].replace(' ', '_') + '><a>' + m['name'] + '</a>' + var meeting_item = $('<li id = ' + m['name'].replace(' ', '_') + '><a>' + m['name'] + '</a>' +
' <i>(' + m['participants'] + ' users, ' + m['moderators'] + ' mods)</i>' + '</li>') ' <i>(' + m['participants'] + ((m['participants'] == 1) ? ' user, ' : ' users, ') +
m['moderators'] + ((m['moderators'] == 1) ? ' mod)' : ' mods)') + '</i>' + '</li>')
$('.actives').append(meeting_item); $('.actives').append(meeting_item);
// Set up join on click. // Set up join on click.