receive: function(data)
{
- id = data.id;
-
- // Don't add it if it already exists
- if ($("#notice-"+id).length > 0) {
- return;
- }
-
if (RealtimeUpdate._paused === false) {
RealtimeUpdate.purgeLastNoticeItem();
},
insertNoticeItem: function(data) {
+ // Don't add it if it already exists
+ if ($("#notice-"+data.id).length > 0) {
+ return;
+ }
+
var noticeItem = RealtimeUpdate.makeNoticeItem(data);
$("#notices_primary .notices").prepend(noticeItem);
$("#notices_primary .notice:first").css({display:"none"});
updateQueuedCounter: function()
{
- QC = $('#realtime_playpause #queued_counter').html('('+RealtimeUpdate._queuedNotices.length+')');
+ $('#realtime_playpause #queued_counter').html('('+RealtimeUpdate._queuedNotices.length+')');
},
removeQueuedCounter: function()