Promises (first look)

Thread dropdown
Small fixes
This commit is contained in:
RainLoop Team 2015-03-14 03:10:00 +04:00
parent dd41d30f9b
commit c23ba31e17
61 changed files with 12442 additions and 130 deletions

View file

@ -421,6 +421,12 @@
'MailServerError': 901,
'ClientViewError': 902,
'InvalidInputArgument': 903,
'AjaxFalse': 950,
'AjaxAbort': 951,
'AjaxParse': 952,
'AjaxTimeout': 953,
'UnknownNotification': 999,
'UnknownError': 999
};

View file

@ -134,9 +134,6 @@
'allowedContent': true,
'extraAllowedContent': true,
'forceEnterMode': true,
'autoParagraph': false,
'fillEmptyBlocks': false,
'ignoreEmptyParagraph': true,

View file

@ -613,7 +613,7 @@
*/
Utils.microtime = function ()
{
return (new Date()).getTime();
return (new window.Date()).getTime();
};
/**
@ -848,7 +848,7 @@
},
convertBlockquote = function (sText) {
sText = splitPlainText($.trim(sText));
sText = Utils.trim(sText);
sText = '> ' + sText.replace(/\n/gm, '\n> ');
return sText.replace(/(^|\n)([> ]+)/gm, function () {
return (arguments && 2 < arguments.length) ? arguments[1] + $.trim(arguments[2].replace(/[\s]/g, '')) + ' ' : '';
@ -920,8 +920,10 @@
.replace(/&amp;/gi, '&')
;
sText = splitPlainText(Utils.trim(sText));
iPos = 0;
iLimit = 100;
iLimit = 800;
while (0 < iLimit)
{