if (data && data.success) {
/* search for removed notifications. */
sone.find("#notification-area .notification").each(function() {
var notificationId = $(this).prop("id");
var foundNotification = false;
$.each(data.notifications, function(index, value) {
if (data && data.success) {
/* search for removed notifications. */
sone.find("#notification-area .notification").each(function() {
var notificationId = $(this).prop("id");
var foundNotification = false;
$.each(data.notifications, function(index, value) {