Groups
Groups
Sign in
Groups
Groups
nowjs
Conversations
About
Send feedback
Help
[nowjs-remove group]
31 views
Skip to first unread message
Hưng Lê
unread,
Apr 13, 2012, 12:07:18 AM
4/13/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to no...@googlegroups.com
Hi All,
I have a qs: How to remove group when all client of this group has removed? (syntax)
Thanks and sorry cause my english verry bad :(
--
Lê Sĩ Hưng
Ian Serlin
unread,
Apr 13, 2012, 10:57:05 AM
4/13/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to no...@googlegroups.com
Hi Hưng,
Try something like:
myGroup.on('leave', function(){
myGroup.count(function(numberOfUsers){
if( numberOfUsers == 0 ){ nowjs.removeGroup( 'myGroup' ); }
});
});
Ian Serlin
i...@ianserlin.com
http://useful.io
http://www.linkedin.com/in/ianserlin
213-399-1688
@spiceninja
Hưng Lê
unread,
Apr 15, 2012, 12:03:59 AM
4/15/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to no...@googlegroups.com
Thank so much!
2012/4/13, Ian Serlin <
i...@ianserlin.com
>:
--
*Lê Sĩ Hưng*
Reply all
Reply to author
Forward
0 new messages