mailto link parser

This commit is contained in:
RainLoop Team
2014-08-12 17:51:34 +04:00
parent 6ad84283b7
commit 016b3eead3
8 changed files with 146 additions and 30 deletions

View File

@@ -355,9 +355,9 @@ MailBoxMessageViewViewModel.prototype.onBuild = function (oDom)
self.message.focused(true);
}
})
.on('mousedown', 'a', function (oEvent) {
.on('click', 'a', function (oEvent) {
// setup maito protocol
return !(oEvent && 3 !== oEvent['which'] && RL.mailToHelper($(this).attr('href')));
return !(!!oEvent && 3 !== oEvent['which'] && RL.mailToHelper($(this).attr('href')));
})
.on('click', '.attachmentsPlace .attachmentPreview', function (oEvent) {
if (oEvent && oEvent.stopPropagation)