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