DG IZ; javascript variable misnamed

This commit is contained in:
ilya 2010-08-17 16:29:51 -07:00
parent 5e95650ae3
commit d5d1a2d00f

View file

@ -12,7 +12,7 @@
//Attach onmessage to websocket
ws.onmessage = function(evt) {
var obj = jQuery.parseJSON(evt.data);
debug("got a " + obj['class'] + " for group " + obj['group']);
debug("got a " + obj['class'] + " for group " + obj['group_id']);
if (obj['class']=="retractions"){
processRetraction(obj['post_id']);
@ -23,9 +23,9 @@
}else if (obj['class']=='photos' && onPageForClass('albums')){
processPhotoInAlbum(obj['photo_hash'])
}else if (obj['class']=='status_messages'){
processStatusMessage(obj['class'], obj['html'], obj['status_message_hash'], obj['group'])
processStatusMessage(obj['class'], obj['html'], obj['status_message_hash'], obj['group_id'])
}else{
processPost(obj['class'], obj['html'], obj['group'])
processPost(obj['class'], obj['html'], obj['group_id'])
}