correctly pass JSON object to receive function for Meteor
This commit is contained in:
parent
55494720e5
commit
6ae7057b5c
|
@ -30,9 +30,9 @@ var MeteorUpdater = function()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function receive(message)
|
function receive(data)
|
||||||
{
|
{
|
||||||
id = message.data.id;
|
id = data.id;
|
||||||
|
|
||||||
// Don't add it if it already exists
|
// Don't add it if it already exists
|
||||||
//
|
//
|
||||||
|
@ -40,7 +40,7 @@ var MeteorUpdater = function()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var noticeItem = makeNoticeItem(message.data);
|
var noticeItem = makeNoticeItem(data);
|
||||||
$("#notices_primary .notices").prepend(noticeItem, true);
|
$("#notices_primary .notices").prepend(noticeItem, true);
|
||||||
$("#notices_primary .notice:first").css({display:"none"});
|
$("#notices_primary .notice:first").css({display:"none"});
|
||||||
$("#notices_primary .notice:first").fadeIn(1000);
|
$("#notices_primary .notice:first").fadeIn(1000);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user