lint compliance

pull/1/head
yflory 6 years ago
parent 7666a008d7
commit caf36cb3bf

@ -19,7 +19,7 @@ define([
// Display the notification // Display the notification
$(el).find('.cp-notification-content').addClass("cp-clickable"); $(el).find('.cp-notification-content').addClass("cp-clickable");
$(el).find('.cp-notification-content p') $(el).find('.cp-notification-content p')
.html(Messages._getKey('friendRequest_notification', [msg.content.displayName]) .html(Messages._getKey('friendRequest_notification', [msg.content.displayName]))
.click(function () { .click(function () {
UIElements.displayFriendRequestModal(common, data); UIElements.displayFriendRequestModal(common, data);
}); });
@ -29,7 +29,7 @@ define([
var content = data.content; var content = data.content;
var msg = content.msg; var msg = content.msg;
$(el).find('.cp-notification-content p') $(el).find('.cp-notification-content p')
.html(Messages._getKey('friendRequest_accepted', [msg.content.displayName]) .html(Messages._getKey('friendRequest_accepted', [msg.content.displayName]));
$(el).find('.cp-notification-dismiss').css('display', 'flex'); $(el).find('.cp-notification-dismiss').css('display', 'flex');
}; };
@ -37,7 +37,7 @@ define([
var content = data.content; var content = data.content;
var msg = content.msg; var msg = content.msg;
$(el).find('.cp-notification-content p') $(el).find('.cp-notification-content p')
.html(Messages._getKey('friendRequest_declined', [msg.content.displayName]) .html(Messages._getKey('friendRequest_declined', [msg.content.displayName]));
$(el).find('.cp-notification-dismiss').css('display', 'flex'); $(el).find('.cp-notification-dismiss').css('display', 'flex');
}; };

@ -5,8 +5,7 @@ define([
'/common/common-ui-elements.js', '/common/common-ui-elements.js',
'/common/notifications.js', '/common/notifications.js',
'/common/hyperscript.js', '/common/hyperscript.js',
'/customize/messages.js' ], function ($, Util, UI, UIElements, Notifications, h) {
], function ($, Util, UI, UIElements, Notifications, h, Messages) {
var Mailbox = {}; var Mailbox = {};
Mailbox.create = function (Common) { Mailbox.create = function (Common) {

@ -991,7 +991,7 @@ MessengerUI, Messages) {
} }
refresh(); refresh();
}, },
onViewed: function (data) { onViewed: function () {
refresh(); refresh();
} }
}); });

Loading…
Cancel
Save