Merge pull request #5341 from m4dz/bug/everyone-group-highlight

Highlight everyone group by default
This commit is contained in:
Lukas Reschke 2017-06-12 22:03:14 +02:00 committed by GitHub
commit 8b514bc4c1

View file

@ -222,7 +222,6 @@ GroupList = {
UserList.update(gid === '_everyone' ? '' : gid);
$userGroupList.find('li').removeClass('active');
if (gid !== undefined) {
//TODO: treat Everyone properly
GroupList.getGroupLI(gid).addClass('active');
}
},
@ -380,4 +379,7 @@ $(document).ready( function () {
$('#newgroupname').on('input', function(){
GroupList.handleAddGroupInput(this.value);
});
// highlight `everyone` group at DOMReady by default
GroupList.showGroup('_everyone');
});