diff --git a/www/common/notifications.js b/www/common/notifications.js index 96e31f752..a77f1d155 100644 --- a/www/common/notifications.js +++ b/www/common/notifications.js @@ -19,7 +19,7 @@ define([ // Display the notification $(el).find('.cp-notification-content').addClass("cp-clickable"); $(el).find('.cp-notification-content p') - .html(Messages._getKey('friendRequest_notification', [msg.content.displayName]) + .html(Messages._getKey('friendRequest_notification', [msg.content.displayName])) .click(function () { UIElements.displayFriendRequestModal(common, data); }); @@ -29,7 +29,7 @@ define([ var content = data.content; var msg = content.msg; $(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'); }; @@ -37,7 +37,7 @@ define([ var content = data.content; var msg = content.msg; $(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'); }; diff --git a/www/common/sframe-common-mailbox.js b/www/common/sframe-common-mailbox.js index ad8524c21..cfa6e7a0b 100644 --- a/www/common/sframe-common-mailbox.js +++ b/www/common/sframe-common-mailbox.js @@ -5,8 +5,7 @@ define([ '/common/common-ui-elements.js', '/common/notifications.js', '/common/hyperscript.js', - '/customize/messages.js' -], function ($, Util, UI, UIElements, Notifications, h, Messages) { +], function ($, Util, UI, UIElements, Notifications, h) { var Mailbox = {}; Mailbox.create = function (Common) { diff --git a/www/common/toolbar3.js b/www/common/toolbar3.js index 385e35135..ec9ffa7d2 100644 --- a/www/common/toolbar3.js +++ b/www/common/toolbar3.js @@ -991,7 +991,7 @@ MessengerUI, Messages) { } refresh(); }, - onViewed: function (data) { + onViewed: function () { refresh(); } });