diff --git a/app/assets/javascripts/layout.js b/app/assets/javascripts/layout.js index 600fe6164..534995c09 100644 --- a/app/assets/javascripts/layout.js +++ b/app/assets/javascripts/layout.js @@ -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(); }); }; diff --git a/app/assets/javascripts/sidebar.js b/app/assets/javascripts/sidebar.js index 8135c424a..d953ffa34 100644 --- a/app/assets/javascripts/sidebar.js +++ b/app/assets/javascripts/sidebar.js @@ -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"