Add TEST and PDF attachment preview (close #40)

This commit is contained in:
RainLoop Team 2013-12-29 18:26:40 +04:00
parent 50f16ea7b7
commit a8a21f42f7
7 changed files with 99 additions and 10 deletions

View file

@ -133,12 +133,33 @@ Globals.bIsAndroidDevice = -1 < Globals.sUserAgent.indexOf('android');
*/
Globals.bMobileDevice = Globals.bIsiOSDevice || Globals.bIsAndroidDevice;
/**
* @type {boolean}
*/
Globals.bDisableNanoScroll = Globals.bMobileDevice;
/**
* @type {boolean}
*/
Globals.bAllowPdfPreview = !Globals.bMobileDevice;
/**
* @type {boolean}
*/
Globals.bAnimationSupported = !Globals.bMobileDevice && $html.hasClass('csstransitions');
/**
* @type {string}
*/
Globals.sAnimationType = '';
if (Globals.bAllowPdfPreview && navigator && navigator.mimeTypes)
{
Globals.bAllowPdfPreview = !!_.find(navigator.mimeTypes, function (oType) {
return oType && 'application/pdf' === oType.type;
});
}
Consts.Defaults = {};
Consts.Values = {};
Consts.DataImages = {};