Small fixes

This commit is contained in:
RainLoop Team 2014-08-28 15:46:18 +04:00
parent c5bffef9cd
commit f92120a5a7
7 changed files with 46 additions and 46 deletions

View file

@ -655,18 +655,18 @@
sSignature = sSignature.substr(6);
}
sSignature = sSignature.replace(/[\r]/, '');
sSignature = sSignature.replace(/[\r]/g, '');
sFrom = Utils.pString(sFrom);
if ('' !== sFrom)
{
sSignature = sSignature.replace(/{{FROM}}/, sFrom);
sSignature = sSignature.replace(/{{FROM}}/g, sFrom);
}
sSignature = sSignature.replace(/[\s]{1,2}{{FROM}}/, '{{FROM}}');
sSignature = sSignature.replace(/[\s]{1,2}{{FROM}}/g, '{{FROM}}');
sSignature = sSignature.replace(/{{FROM}}/, '');
sSignature = sSignature.replace(/{{DATE}}/, moment().format('llll'));
sSignature = sSignature.replace(/{{FROM}}/g, '');
sSignature = sSignature.replace(/{{DATE}}/g, moment().format('llll'));
if (sData && Enums.ComposeType.Empty === sComposeType &&
-1 < sSignature.indexOf('{{DATA}}'))
@ -675,7 +675,7 @@
sSignature = sSignature.replace('{{DATA}}', sData);
}
sSignature = sSignature.replace(/{{DATA}}/, '');
sSignature = sSignature.replace(/{{DATA}}/g, '');
if (!bHtml)
{