/* mark Sone as known when clicking it. */
$(soneElement).click(function() {
- markSoneAsKnown(getSoneId(this));
+ markSoneAsKnown(soneElement);
});
}
notification = ajaxifyNotification(createNotification(value.id, value.text, value.dismissable)).hide();
if (oldNotification.length != 0) {
if (oldNotification.find(".short-text").length > 0) {
- opened = !oldNotification.find(".short-text").hasClass("hidden");
+ opened = oldNotification.find(".short-text").hasClass("hidden");
notification.find(".short-text").toggleClass("hidden", opened);
notification.find(".text").toggleClass("hidden", !opened);
}