Fix notifications

pull/1/head
yflory 5 years ago
parent d3fdb0d9fe
commit b88c5d2944

@ -57,11 +57,11 @@ define([
$(notif).find('.cp-notification-content p').html(data.content.getFormatText()); $(notif).find('.cp-notification-content p').html(data.content.getFormatText());
} }
if (typeof(data.content.isClickable) === "function") { if (data.content.isClickable) {
$(notif).find('.cp-notification-content').addClass("cp-clickable") $(notif).find('.cp-notification-content').addClass("cp-clickable")
.click(data.content.handler); .click(data.content.handler);
} }
if (typeof(data.content.isDismissible) === "function") { if (data.content.isDismissible) {
var dismissIcon = h('span.fa.fa-times'); var dismissIcon = h('span.fa.fa-times');
var dismiss = h('div.cp-notification-dismiss', { var dismiss = h('div.cp-notification-dismiss', {
title: Messages.notifications_dismiss title: Messages.notifications_dismiss

Loading…
Cancel
Save