-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
Hello! I modify ChatSettings.update_online_count method
update_online_count: function(){
var oc=jQuery("div#chat_buddylist").find("span.online_count").get(0);
var lastCount = parseInt(jQuery(oc).html());
jQuery.post(ajaxurl, {
action: 'bpchat_get_online_users_count',
'cookie': encodeURIComponent(document.cookie)
},
function(ret){
if(parseInt(ret) != lastCount)
{
jQuery(oc).html(ret);
ChatSettings.update_online_list();
}
})//end of post
},
Metadata
Metadata
Assignees
Labels
No labels