VRFS-410 fix issue with concurrent app notifications

This commit is contained in:
Brian Smith 2013-08-06 23:18:32 -04:00
parent ce36a6cb6a
commit 2297380b9d
2 changed files with 14 additions and 5 deletions

View File

@ -568,11 +568,11 @@
$notify.slideDown(2000).delay(2000).slideUp(2000, function() {
// reset data
$('h2', $notify).text('');
$('p', $notify).text('');
$('div.detail', $notify).html('');
$('#avatar', $notify).attr('src', '');
$('#avatar', $notify).hide();
// $('h2', $notify).text('');
// $('p', $notify).text('');
// $('div.detail', $notify).html('');
// $('#avatar', $notify).attr('src', '');
// $('#avatar', $notify).hide();
});
};

View File

@ -10,6 +10,15 @@
function initializeFriendsPanel() {
// THIS IS TEST CODE TO GENERATE BACK TO BACK NOTIFICATIONS
// for (var x=0; x < 3; x++) {
// app.notify({
// "title": "Friend is now online",
// "text": "Test",
// "icon_url": context.JK.resolveAvatarUrl("")
// });
// }
$('#sidebar-search-header').hide();
var url = "/api/users/" + context.JK.currentUserId + "/friends"