|
|
|
@ -86,9 +86,9 @@ define([
|
|
|
|
|
var content = data.content;
|
|
|
|
|
var msg = content.msg;
|
|
|
|
|
var type = Hash.parsePadUrl(msg.content.href).type;
|
|
|
|
|
var key = type === 'drive' ? 'notification_folderShared' :
|
|
|
|
|
(type === 'file' ? 'notification_fileShared' :
|
|
|
|
|
'notification_padShared');
|
|
|
|
|
var key = type === 'drive' ? 'notification_folderShared' : // Msg.notification_folderShared
|
|
|
|
|
(type === 'file' ? 'notification_fileShared' : // Msg.notification_fileShared
|
|
|
|
|
'notification_padShared'); // Msg.notification_padShared
|
|
|
|
|
|
|
|
|
|
var teamNotification = /^team-/.test(data.type) && Number(data.type.slice(5));
|
|
|
|
|
var teamName = '';
|
|
|
|
@ -260,7 +260,7 @@ define([
|
|
|
|
|
// Display the notification
|
|
|
|
|
var name = Util.fixHTML(msg.content.user.displayName) || Messages.anonymous;
|
|
|
|
|
var title = Util.fixHTML(msg.content.title);
|
|
|
|
|
var key = 'owner_removed' + (msg.content.pending ? 'Pending' : '');
|
|
|
|
|
var key = 'owner_removed' + (msg.content.pending ? 'Pending' : ''); // Msg.owner_removed, owner_removedPending
|
|
|
|
|
content.getFormatText = function() {
|
|
|
|
|
return Messages._getKey(key, [name, title]);
|
|
|
|
|
};
|
|
|
|
|