Small fixes

This commit is contained in:
RainLoop Team 2014-02-18 01:25:19 +04:00
parent 76c21b82b3
commit fd58f4dcd5
18 changed files with 491 additions and 429 deletions

View file

@ -2,7 +2,7 @@
"name": "RainLoop", "name": "RainLoop",
"title": "RainLoop Webmail", "title": "RainLoop Webmail",
"version": "1.6.3", "version": "1.6.3",
"release": "706", "release": "713",
"description": "Simple, modern & fast web-based email client", "description": "Simple, modern & fast web-based email client",
"homepage": "http://rainloop.net", "homepage": "http://rainloop.net",
"main": "Gruntfile.js", "main": "Gruntfile.js",

View file

@ -38,11 +38,10 @@ class HtmlUtils
$oDom = new \DOMDocument('1.0', 'utf-8'); $oDom = new \DOMDocument('1.0', 'utf-8');
$oDom->encoding = 'UTF-8'; $oDom->encoding = 'UTF-8';
$oDom->formatOutput = false;
@$oDom->loadHTML( @$oDom->loadHTML('<'.'?xml version="1.0" encoding="utf-8"?'.'>'.
'<'.'?xml version="1.0" encoding="utf-8"?'.'>'. '<html '.$sHtmlAttrs.'><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body '.$sBodyAttrs.'>'.$sText.'</body></html>');
'<html '.$sHtmlAttrs.'><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body '.$sBodyAttrs.'>'.$sText.'</body></html>'
);
return $oDom; return $oDom;
} }

View file

@ -373,7 +373,7 @@ class Http
CURLOPT_SSL_VERIFYPEER => false, CURLOPT_SSL_VERIFYPEER => false,
CURLOPT_RETURNTRANSFER => true, CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true, CURLOPT_POST => true,
CURLOPT_POSTFIELDS => $aPost, CURLOPT_POSTFIELDS => \http_build_query($aPost, '', '&'),
CURLOPT_TIMEOUT => (int) $iTimeout CURLOPT_TIMEOUT => (int) $iTimeout
); );

View file

@ -93,15 +93,31 @@ class Utils
*/ */
public static function IsIconvSupported() public static function IsIconvSupported()
{ {
return \MailSo\Base\Utils::FunctionExistsAndEnabled('iconv'); return \MailSo\Capa::$ICONV &&
\MailSo\Base\Utils::FunctionExistsAndEnabled('iconv');
} }
/** /**
* @return bool * @return bool
*/ */
public static function IsLibIconvSupported() public static function IsIconvIgnoreSupported()
{ {
return \MailSo\Base\Utils::FunctionExistsAndEnabled('libiconv'); static $bCache = null;
if (null !== $bCache)
{
return $bCache;
}
$bCache = false;
if (\MailSo\Base\Utils::IsIconvSupported())
{
if (false !== @\iconv('', '//IGNORE', ''))
{
$bCache = true;
}
}
return $bCache;
} }
/** /**
@ -109,7 +125,8 @@ class Utils
*/ */
public static function IsMbStringSupported() public static function IsMbStringSupported()
{ {
return \MailSo\Base\Utils::FunctionExistsAndEnabled('mb_convert_encoding'); return \MailSo\Capa::$MBSTRING &&
\MailSo\Base\Utils::FunctionExistsAndEnabled('mb_convert_encoding');
} }
/** /**
@ -124,6 +141,46 @@ class Utils
\in_array($sCharset, \MailSo\Base\Utils::$SuppostedCharsets)); \in_array($sCharset, \MailSo\Base\Utils::$SuppostedCharsets));
} }
/**
* @param string $sInputString
* @param string $sInputFromEncoding
* @param string $sInputToEncoding
*
* @return string|bool
*/
public static function IconvConvertEncoding($sInputString, $sInputFromEncoding, $sInputToEncoding)
{
$sIconvIgnorOption = '';
if (\MailSo\Base\Utils::IsIconvIgnoreSupported())
{
$sIconvIgnorOption = '//IGNORE';
}
return @\iconv(\strtoupper($sInputFromEncoding), \strtoupper($sInputToEncoding).$sIconvIgnorOption, $sInputString);
}
/**
* @param string $sInputString
* @param string $sInputFromEncoding
* @param string $sInputToEncoding
*
* @return string|bool
*/
public static function MbConvertEncoding($sInputString, $sInputFromEncoding, $sInputToEncoding)
{
static $sMbstringSubCh = null;
if (null === $sMbstringSubCh)
{
$sMbstringSubCh = \mb_substitute_character();
}
\mb_substitute_character('none');
$sResult = @\mb_convert_encoding($sInputString, \strtoupper($sInputToEncoding), \strtoupper($sInputFromEncoding));
\mb_substitute_character($sMbstringSubCh);
return $sResult;
}
/** /**
* @param string $sInputString * @param string $sInputString
* @param string $sInputFromEncoding * @param string $sInputFromEncoding
@ -197,15 +254,11 @@ class Utils
if (\MailSo\Base\Utils::IsIconvSupported()) if (\MailSo\Base\Utils::IsIconvSupported())
{ {
$sResult = @\iconv(\strtoupper($sFromEncoding), \strtoupper($sToEncoding).'//IGNORE', $sResult); $sResult = \MailSo\Base\Utils::IconvConvertEncoding($sResult, $sFromEncoding, $sToEncoding);
} }
else if (\MailSo\Base\Utils::IsMbStringSupported()) else if (\MailSo\Base\Utils::IsMbStringSupported())
{ {
$sResult = @\mb_convert_encoding($sResult, \strtoupper($sToEncoding), \strtoupper($sFromEncoding)); $sResult = \MailSo\Base\Utils::MbConvertEncoding($sResult, $sFromEncoding, $sToEncoding);
}
else if (\MailSo\Base\Utils::IsLibIconvSupported())
{
$sResult = @\libiconv(\strtoupper($sFromEncoding), \strtoupper($sToEncoding), $sResult);
} }
$sResult = (false !== $sResult) ? $sResult : $sInputString; $sResult = (false !== $sResult) ? $sResult : $sInputString;
@ -428,54 +481,12 @@ class Utils
* @param string $sEncodeType * @param string $sEncodeType
* @param string $sEncodeCharset * @param string $sEncodeCharset
* @param string $sValue * @param string $sValue
* @param string $sHeaderName = ''
* *
* @return string * @return string
*/ */
public static function EncodeHeaderValue($sEncodeType, $sEncodeCharset, $sValue, $sHeaderName = '') public static function EncodeHeaderValue($sEncodeType, $sEncodeCharset, $sValue)
{ {
$sValue = \trim($sValue); $sValue = \trim($sValue);
// return \mb_encode_mimeheader($sValue,
// \MailSo\Base\Enumerations\Charset::UTF_8, 'Q',
// \MailSo\Mime\Enumerations\Constants::CRLF);
// $splitWords = true;
// if ($splitWords) {
// $words = \array_map(function($word) use ($sEncodeCharset) {
// $header = \iconv_mime_encode('Header', $word, array(
// 'scheme' => 'Q',
// 'line-length' => 78,
// 'output-charset' => $sEncodeCharset,
// ));
// return \str_replace('Header: ', '', $header);
// }, \explode(' ', $sValue));
// return \implode("\r\n ", $words);
// }
//
// $header = \iconv_mime_encode('Header', $sValue, array(
// 'scheme' => 'Q',
// 'line-length' => 998,
// 'output-charset' => $sEncodeCharset,
// ));
// return \str_replace('Header: ', '', $header);
//
// $aPreferences = array(
// 'input-charset' => \MailSo\Base\Enumerations\Charset::UTF_8,
// 'output-charset' => $sEncodeCharset,
// 'line-length' => \MailSo\Mime\Enumerations\Constants::LINE_LENGTH,
// 'line-break-chars' => \MailSo\Mime\Enumerations\Constants::CRLF
// );
//
// if (\in_array(\strtoupper($sEncodeType), array('B', 'Q')))
// {
// $aPreferences['scheme'] = \strtoupper($sEncodeType);
// }
//
// $sHeaderName = 0 === \strlen($sHeaderName) ? 'X-Header' : $sHeaderName;
// $sValue = \iconv_mime_encode($sHeaderName, $sValue, $aPreferences);
// return \trim(substr($sValue, \strlen($sHeaderName) + 1));
if (0 < \strlen($sValue) && !\MailSo\Base\Utils::IsAscii($sValue)) if (0 < \strlen($sValue) && !\MailSo\Base\Utils::IsAscii($sValue))
{ {
switch (\strtoupper($sEncodeType)) switch (\strtoupper($sEncodeType))
@ -807,7 +818,7 @@ class Utils
static $bValidateAction = null; static $bValidateAction = null;
if (null === $bValidateAction) if (null === $bValidateAction)
{ {
$bValidateAction = !((bool) @\ini_get('safe_mode')) && $bValidateAction = !((bool) \ini_get('safe_mode')) &&
\MailSo\Base\Utils::FunctionExistsAndEnabled('set_time_limit'); \MailSo\Base\Utils::FunctionExistsAndEnabled('set_time_limit');
} }
@ -1113,8 +1124,21 @@ class Utils
return $sUtfString; return $sUtfString;
} }
$sUtfString = @\iconv('UTF-8', 'UTF-8//IGNORE', $sUtfString); $sNewUtfString = false;
if (\MailSo\Base\Utils::IsIconvSupported())
{
$sNewUtfString = \MailSo\Base\Utils::IconvConvertEncoding($sUtfString, 'UTF-8', 'UTF-8');
}
else if (\MailSo\Base\Utils::IsMbStringSupported())
{
$sNewUtfString = \MailSo\Base\Utils::MbConvertEncoding($sUtfString, 'UTF-8', 'UTF-8');
}
if (false !== $sNewUtfString)
{
$sUtfString = $sNewUtfString;
}
$sUtfString = \preg_replace( $sUtfString = \preg_replace(
'/[\x00-\x08\x10\x0B\x0C\x0E-\x1F\x7F]'. '/[\x00-\x08\x10\x0B\x0C\x0E-\x1F\x7F]'.
'|[\x00-\x7F][\x80-\xBF]+'. '|[\x00-\x7F][\x80-\xBF]+'.
@ -1704,7 +1728,8 @@ class Utils
$mResult = ''; $mResult = '';
if (!\MailSo\Base\Utils::IsAscii($sStr)) if (!\MailSo\Base\Utils::IsAscii($sStr))
{ {
$mResult = \MailSo\Base\Utils::FunctionExistsAndEnabled('mb_detect_encoding') ? $mResult = \MailSo\Base\Utils::IsMbStringSupported() &&
\MailSo\Base\Utils::FunctionExistsAndEnabled('mb_detect_encoding') ?
@\mb_detect_encoding($sStr, 'auto', true) : false; @\mb_detect_encoding($sStr, 'auto', true) : false;
if (false === $mResult && \MailSo\Base\Utils::IsIconvSupported()) if (false === $mResult && \MailSo\Base\Utils::IsIconvSupported())

View file

@ -0,0 +1,19 @@
<?php
namespace MailSo;
/**
* @category MailSo
*/
final class Capa
{
/**
* @var bool
*/
static $ICONV = true;
/**
* @var bool
*/
static $MBSTRING = true;
}

View file

@ -203,7 +203,9 @@ class Header
if ($this->IsSubject()) if ($this->IsSubject())
{ {
if (!\MailSo\Base\Utils::IsAscii($sResult) && \function_exists('iconv_mime_encode')) if (!\MailSo\Base\Utils::IsAscii($sResult) &&
\MailSo\Base\Utils::IsIconvSupported() &&
\function_exists('iconv_mime_encode'))
{ {
$aPreferences = array( $aPreferences = array(
// 'scheme' => \MailSo\Base\Enumerations\Encoding::QUOTED_PRINTABLE_SHORT, // 'scheme' => \MailSo\Base\Enumerations\Encoding::QUOTED_PRINTABLE_SHORT,

View file

@ -10,7 +10,7 @@ final class Version
/** /**
* @var string * @var string
*/ */
const APP_VERSION = '1.3.0'; const APP_VERSION = '1.3.1';
/** /**
* @var string * @var string
@ -38,7 +38,13 @@ final class Version
*/ */
public static function Signature() public static function Signature()
{ {
$oPhar = new \Phar('mailso.phar'); $sSignature = '';
return $oPhar->getSignature(); if (\defined('MAILSO_LIBRARY_USE_PHAR'))
{
$oPhar = new \Phar('mailso.phar');
$sSignature = $oPhar->getSignature();
}
return $sSignature;
} }
} }

View file

@ -5199,14 +5199,18 @@ class Actions
} }
$aHeaders = $mRow; $aHeaders = $mRow;
foreach ($aHeaders as $iIndex => $sHeaderValue)
{
$aHeaders[$iIndex] = \MailSo\Base\Utils::Utf8Clear($sHeaderValue);
}
} }
else else
{ {
$aNewItem = array(); $aNewItem = array();
foreach ($aHeaders as $iIndex => $sHeaderValue) foreach ($aHeaders as $iIndex => $sHeaderValue)
{ {
$aNewItem[@\iconv('utf-8', 'utf-8//IGNORE', $sHeaderValue)] = $aNewItem[$sHeaderValue] = isset($mRow[$iIndex]) ? $mRow[$iIndex] : '';
isset($mRow[$iIndex]) ? $mRow[$iIndex] : '';
} }
$aData[] = $aNewItem; $aData[] = $aNewItem;

View file

@ -214,6 +214,7 @@ Enables caching in the system'),
'autocreate_system_folders' => array(true), 'autocreate_system_folders' => array(true),
'allow_message_append' => array(false), 'allow_message_append' => array(false),
'determine_user_language' => array(true), 'determine_user_language' => array(true),
'disable_iconv_if_mbstring_supported' => array(false),
'login_fault_delay' => array(1), 'login_fault_delay' => array(1),
'log_ajax_response_write_limit' => array(300), 'log_ajax_response_write_limit' => array(300),
'allow_html_editor_source_button' => array(false), 'allow_html_editor_source_button' => array(false),

View file

@ -10,7 +10,7 @@ if (!function_exists('mb_strtoupper'))
else $encoding = strtoupper($encoding); else $encoding = strtoupper($encoding);
if ('UTF-8' === $encoding || 'UTF8' === $encoding) $encoding = INF; if ('UTF-8' === $encoding || 'UTF8' === $encoding) $encoding = INF;
else $s = iconv($encoding, 'UTF-8//IGNORE', $s); else $s = function_exists('iconv') ? iconv($encoding, 'UTF-8//IGNORE', $s) : $s;
static $upper; static $upper;
isset($upper) || $upper = unserialize(base64_decode('YToxMDUxOntzOjE6ImEiO3M6MToiQSI7czoxOiJiIjtzOjE6IkIiO3M6MToiYyI7czoxOiJDIjtz isset($upper) || $upper = unserialize(base64_decode('YToxMDUxOntzOjE6ImEiO3M6MToiQSI7czoxOiJiIjtzOjE6IkIiO3M6MToiYyI7czoxOiJDIjtz
@ -400,7 +400,7 @@ czo0OiLwkJCmIjtzOjQ6IvCQkY8iO3M6NDoi8JCQpyI7fQ=='));
} }
if (INF === $encoding) return $s; if (INF === $encoding) return $s;
else return iconv('UTF-8', $encoding, $s); else return function_exists('iconv') ? iconv('UTF-8', $encoding, $s) : $s;
} }
} }

View file

@ -37,6 +37,12 @@ class Service
\ini_set('display_errors', 1); \ini_set('display_errors', 1);
} }
if ($this->oActions->Config()->Get('labs', 'disable_iconv_if_mbstring_supported') &&
\class_exists('MailSo\Capa') && \MailSo\Base\Utils::IsMbStringSupported())
{
\MailSo\Capa::$ICONV = false;
}
$sServer = \trim($this->oActions->Config()->Get('security', 'custom_server_signature', '')); $sServer = \trim($this->oActions->Config()->Get('security', 'custom_server_signature', ''));
if (0 < \strlen($sServer)) if (0 < \strlen($sServer))
{ {
@ -91,7 +97,7 @@ class Service
{ {
return $this; return $this;
} }
$this->oActions->ParseQueryAuthString(); $this->oActions->ParseQueryAuthString();
if (defined('APP_INSTALLED_START') && defined('APP_INSTALLED_VERSION') && if (defined('APP_INSTALLED_START') && defined('APP_INSTALLED_VERSION') &&

View file

@ -55,7 +55,7 @@ TRASH_NAME = "Șterse"
TITLE = "Cotă" TITLE = "Cotă"
[MESSAGE_LIST] [MESSAGE_LIST]
BUTTON_RELOAD = "Reîncarcă" BUTTON_RELOAD = "Actualizare"
BUTTON_MOVE_TO = "Mută la" BUTTON_MOVE_TO = "Mută la"
BUTTON_DELETE = "Șterge" BUTTON_DELETE = "Șterge"
BUTTON_SPAM = "SPAM" BUTTON_SPAM = "SPAM"
@ -207,7 +207,7 @@ BUTTON_ADD_ACCOUNT = "Adaugă"
[POPUPS_IDENTITIES] [POPUPS_IDENTITIES]
TITLE_ADD_IDENTITY = "Adăugați un profil" TITLE_ADD_IDENTITY = "Adăugați un profil"
TITLE_UPDATE_IDENTITY = "Actualizați profilul" TITLE_UPDATE_IDENTITY = "Actualizați profilul"
BUTTON_ADD_IDENTITY = "Adaăugați" BUTTON_ADD_IDENTITY = "Adăugați"
BUTTON_UPDATE_IDENTITY = "Actualizați" BUTTON_UPDATE_IDENTITY = "Actualizați"
LABEL_EMAIL = "eMail" LABEL_EMAIL = "eMail"
LABEL_NAME = "Nume" LABEL_NAME = "Nume"
@ -257,198 +257,198 @@ NOTIFICATION_TRASH = "Вы еще не выбрали системную пап
Если же вы хотите удалять письма сразу, пожалуйста, выберите пункт \"Не использовать\"." Если же вы хотите удалять письма сразу, пожалуйста, выберите пункт \"Не использовать\"."
[TITLES] [TITLES]
LOADING = "Загрузка" LOADING = "Se încarcă"
LOGIN = "Вход" LOGIN = "Conectare"
MAILBOX = "Почта" MAILBOX = "Poștă"
SETTINGS = "Настройки" SETTINGS = "Opțiuni"
COMPOSE = "Написать письмо" COMPOSE = "Compune"
[UPLOAD] [UPLOAD]
ERROR_FILE_IS_TOO_BIG = "Файл слишком большой" ERROR_FILE_IS_TOO_BIG = "Fișierul este prea mare"
ERROR_FILE_PARTIALLY_UPLOADED = "Файл не загрузился полностью" ERROR_FILE_PARTIALLY_UPLOADED = "Fișierul nu este încărcat complet"
ERROR_NO_FILE_UPLOADED = "Файл не был загружен" ERROR_NO_FILE_UPLOADED = "Nici un fișier încărcat"
ERROR_MISSING_TEMP_FOLDER = "Ошибка при сохранении файла" ERROR_MISSING_TEMP_FOLDER = "Eroare la salvarea unui fișier"
ERROR_ON_SAVING_FILE = "Ошибка при сохранении файла" ERROR_ON_SAVING_FILE = "Eroare la salvarea unui fișier"
ERROR_FILE_TYPE = "Неверный тип файла" ERROR_FILE_TYPE = "Tip de fișier invalid"
ERROR_UNKNOWN = "Ошибка загрузки файла" ERROR_UNKNOWN = "Eroare la încărcarea de fișiere"
[EDITOR] [EDITOR]
TEXT_SWITCHER_PLAINT_TEXT = "Обычный текст" TEXT_SWITCHER_PLAINT_TEXT = "Text Simplu"
TEXT_SWITCHER_RICH_FORMATTING = "Форматированный текст" TEXT_SWITCHER_RICH_FORMATTING = "Text formatat"
TEXT_SWITCHER_CONFIRM = "Форматирование текста и изображения будут потеряны. Вы уверены, что хотите продолжить?" TEXT_SWITCHER_CONFIRM = "Formatarea textului și imaginile vor fi pierdute. Sigur doriți să continuați?"
[SETTINGS_LABELS] [SETTINGS_LABELS]
LABEL_PERSONAL_NAME = "Персональные" LABEL_PERSONAL_NAME = "Personal"
LABEL_GENERAL_NAME = "Основные" LABEL_GENERAL_NAME = "De bază"
LABEL_CONTACTS_NAME = "Контакты" LABEL_CONTACTS_NAME = "Contacte"
LABEL_FOLDERS_NAME = "Папки" LABEL_FOLDERS_NAME = "Dosare"
LABEL_ACCOUNTS_NAME = "Аккаунты" LABEL_ACCOUNTS_NAME = "Conturi"
LABEL_IDENTITY_NAME = "Профиль" LABEL_IDENTITY_NAME = "Profil"
LABEL_IDENTITIES_NAME = "Профили" LABEL_IDENTITIES_NAME = "Profiluri"
LABEL_SOCIAL_NAME = "Социальные" LABEL_SOCIAL_NAME = "Social"
LABEL_THEMES_NAME = "Темы" LABEL_THEMES_NAME = "Subiecte"
LABEL_CHANGE_PASSWORD_NAME = "Пароль" LABEL_CHANGE_PASSWORD_NAME = "Parolă"
BUTTON_BACK = "Назад" BUTTON_BACK = "Înapoi"
[SETTINGS_IDENTITY] [SETTINGS_IDENTITY]
LEGEND_IDENTITY = "Настройки профиля" LEGEND_IDENTITY = "Setările de profil"
LABEL_DISPLAY_NAME = "Имя" LABEL_DISPLAY_NAME = "Nume"
LABEL_REPLY_TO = "Отвечать на" LABEL_REPLY_TO = "Răspunde la"
LABEL_SIGNATURE = "Подпись" LABEL_SIGNATURE = "Semnătură"
LABEL_ADD_SIGNATURE_TO_ALL = "Add your signature to all the outgoing messages" LABEL_ADD_SIGNATURE_TO_ALL = "Adăugă semnătura la toate mesajele trimise"
[SETTINGS_GENERAL] [SETTINGS_GENERAL]
LEGEND_GENERAL = "Основные Настройки" LEGEND_GENERAL = "Setări de bază"
LABEL_LANGUAGE = "Язык" LABEL_LANGUAGE = "Limbă"
LABEL_EDITOR = "Редактор текста по умолчанию" LABEL_EDITOR = "Editor de text implicit"
LABEL_EDITOR_HTML_AS_DEFAULT = "Форматированный" LABEL_EDITOR_HTML_AS_DEFAULT = "Formatat"
LABEL_EDITOR_PLAIN_AS_DEFAULT = "Простой" LABEL_EDITOR_PLAIN_AS_DEFAULT = "Simplu"
LABEL_ANIMATION = "Анимация интерфейса" LABEL_ANIMATION = "Interfață animație"
LABEL_ANIMATION_FULL = "Полная" LABEL_ANIMATION_FULL = "Complet"
LABEL_ANIMATION_NORMAL = "Нормальная" LABEL_ANIMATION_NORMAL = "Normal"
LABEL_ANIMATION_NONE = "Отсутствует" LABEL_ANIMATION_NONE = "nu"
LABEL_VIEW_OPTIONS = "Отображение" LABEL_VIEW_OPTIONS = "Afișare"
LABEL_USE_PREVIEW_PANE = "Использовать трехколоночный режим отображения" LABEL_USE_PREVIEW_PANE = "Folosiți un mod de afișare cu trei coloane"
LABEL_USE_CHECKBOXES_IN_LIST = "Показывать чекбоксы в списках" LABEL_USE_CHECKBOXES_IN_LIST = "Afișează listele checkbox"
LABEL_USE_THREADS = "Сворачивать письма в переписках" LABEL_USE_THREADS = "Minimizează scrisorile"
LABEL_REPLY_SAME_FOLDER = "Помещать ответы в ту же папку, где находится оригинал" LABEL_REPLY_SAME_FOLDER = "Răspunsurile în același folder cu originalul"
LABEL_SHOW_IMAGES = "Показывать внешние изображения в теле письма без предупреждения" LABEL_SHOW_IMAGES = "Arată imaginile externe în corpul mesajului, fără avertisment"
LABEL_SHOW_ANIMATION = "Использовать анимацию" LABEL_SHOW_ANIMATION = "Utilizați animația"
LABEL_MESSAGE_PER_PAGE = "сообщений на одной странице" LABEL_MESSAGE_PER_PAGE = "mesaje pe o pagină"
LABEL_CHROME_NOTIFICATION = "Уведомления" LABEL_CHROME_NOTIFICATION = "Notificări"
LABEL_CHROME_NOTIFICATION_DESC = "Показывать уведомления о новых сообщениях в всплывающих подсказках" LABEL_CHROME_NOTIFICATION_DESC = "Afișați notificări desktop pentru mesaje noi"
LABEL_CHROME_NOTIFICATION_DESC_DENIED = "(Блокировано браузером)" LABEL_CHROME_NOTIFICATION_DESC_DENIED = "(browser-ul blocat)"
[SETTINGS_CONTACTS] [SETTINGS_CONTACTS]
LEGEND_CONTACTS = "Контакты" LEGEND_CONTACTS = "Contacte"
LEGEND_MOBILE_SYNC = "Мобильная Синхронизация" LEGEND_MOBILE_SYNC = "Sincronizați cu mobilul"
LABEL_SYNC_SERVER = "Сервер" LABEL_SYNC_SERVER = "Server"
LABEL_SYNC_USERNAME = "Пользователь" LABEL_SYNC_USERNAME = "Utilizator"
LABEL_SYNC_PASSWORD = "Пароль" LABEL_SYNC_PASSWORD = "Parolă"
LINK_HIDE = "спрятать" LINK_HIDE = "Ascunde"
LINK_SHOW = "показать" LINK_SHOW = "Arată"
LABEL_DESC_PAB = "Персональная адресная книга" LABEL_DESC_PAB = "Agendă personală"
DESC_FULL_PAB_URL = "Если вашему приложению (например как Mozilla Thunderbird (SOGo Connector Thunderbird extension) или Evolution) необходим полный путь к CardDAV адресной книге, используйте URL ниже." DESC_FULL_PAB_URL = "Dacă cerea dumneavoastră (cum ar fi Mozilla Thunderbird (Extensie Sogo Conector Thunderbird) sau Evolution) are nevoie de calea completă la agenda CardDAV, utilizați URL-ul de mai jos."
LABEL_CONTACTS_AUTOSAVE = "Автоматически добавлять получателей писем в адресную книгу" LABEL_CONTACTS_AUTOSAVE = "Adaugă automat destinatarii la agenda de scrisori"
[SETTINGS_THEMES] [SETTINGS_THEMES]
LEGEND_THEMES = "Темы Оформления" LEGEND_THEMES = "Tematică"
LEGEND_THEMES_CUSTOM = "Настройка Пользовательской Темы" LEGEND_THEMES_CUSTOM = "Setați o temă particularizată"
LABEL_CUSTOM_TYPE = "Тип Темы" LABEL_CUSTOM_TYPE = "Tip Teme"
LABEL_CUSTOM_TYPE_LIGHT = "Светлая" LABEL_CUSTOM_TYPE_LIGHT = "Lumina"
LABEL_CUSTOM_TYPE_DARK = "Темная" LABEL_CUSTOM_TYPE_DARK = "Umbră"
LABEL_CUSTOM_BACKGROUND_IMAGE = "Картинка на фоне" LABEL_CUSTOM_BACKGROUND_IMAGE = "Imaginea de pe fundal"
BUTTON_UPLOAD_BACKGROUND_IMAGE = "Загрузить фоновую картинку (JPG, PNG)" BUTTON_UPLOAD_BACKGROUND_IMAGE = "Încărcați o imagine de fundal (JPG, PNG)"
ERROR_FILE_IS_TOO_BIG = "Файл слишком большой (1MB+)" ERROR_FILE_IS_TOO_BIG = "Fișier prea mare (1MB+)"
ERROR_FILE_TYPE_ERROR = "Неверный тип файла (только JPG и PNG)" ERROR_FILE_TYPE_ERROR = "Tip de fișier invalid (numai JPG sau PNG)"
ERROR_UNKNOWN = "Ошибка загрузки файла" ERROR_UNKNOWN = "Eroare la încărcarea de fișiere"
[SETTINGS_SOCIAL] [SETTINGS_SOCIAL]
LEGEND_GOOGLE = "Google" LEGEND_GOOGLE = "Google"
BUTTON_GOOGLE_CONNECT = "Подключить Google аккаунт" BUTTON_GOOGLE_CONNECT = "Conectează-te cu Google"
BUTTON_GOOGLE_DISCONNECT = "Отключить Google аккаунт" BUTTON_GOOGLE_DISCONNECT = "Deconectați contul Google"
MAIN_GOOGLE_DESC = "После подключения к Google вы сможете залогиниться в данный аккаунт, используя кнопку Google на экране логина." MAIN_GOOGLE_DESC = "După conectarea la Google, vă puteți conecta la acest cont folosind butonul Google de pe ecranul de login."
LEGEND_FACEBOOK = "Facebook" LEGEND_FACEBOOK = "Facebook"
BUTTON_FACEBOOK_CONNECT = "Подключить Facebook аккаунт" BUTTON_FACEBOOK_CONNECT = "Conectați-va cu Facebook"
BUTTON_FACEBOOK_DISCONNECT = "Отключить Facebook аккаунт" BUTTON_FACEBOOK_DISCONNECT = "Deconectați contul de Facebook"
MAIN_FACEBOOK_DESC = "После подключения к Facebook вы сможете залогиниться в данный аккаунт, используя кнопку Facebook на экране логина." MAIN_FACEBOOK_DESC = "După conectarea la Facebook, vă puteți conecta la acest cont folosind butonul Facebook de pe ecranul de login."
LEGEND_TWITTER = "Twitter" LEGEND_TWITTER = "Twitter"
BUTTON_TWITTER_CONNECT = "Подключить Twitter аккаунт" BUTTON_TWITTER_CONNECT = "Conectați-vă cu Twitter"
BUTTON_TWITTER_DISCONNECT = "Отключить Twitter аккаунт" BUTTON_TWITTER_DISCONNECT = "Deconectați contul de Twitter"
MAIN_TWITTER_DESC = "После подключения к Twitter вы сможете залогиниться в данный аккаунт, используя кнопку Twitter на экране логина." MAIN_TWITTER_DESC = "După conectarea la Twitter, vă puteți conecta la acest cont folosind butonul Twitter de pe ecranul de login."
[SETTINGS_FOLDERS] [SETTINGS_FOLDERS]
LEGEND_FOLDERS = "Список Папок" LEGEND_FOLDERS = "Lista de dosare"
BUTTON_CREATE = "Создать Папку" BUTTON_CREATE = "Creare dosar"
BUTTON_SYSTEM = "Назначить Системные Папки" BUTTON_SYSTEM = "Atribuirea dosarelor de sistem"
BUTTON_DELETE = "Удалить" BUTTON_DELETE = "Șterge"
BUTTON_SUBSCRIBE = "Подписаться" BUTTON_SUBSCRIBE = "Abonare"
BUTTON_UNSUBSCRIBE = "Отписаться" BUTTON_UNSUBSCRIBE = "Dezabonare"
LOADING_PROCESS = "Обновление списка папок" LOADING_PROCESS = "Actualizez lista de dosare"
CREATING_PROCESS = "Cоздание папки" CREATING_PROCESS = "Crearea dosarului..."
DELETING_PROCESS = "Удаление папки" DELETING_PROCESS = "Șterg dosarul..."
RENAMING_PROCESS = "Переименование папки" RENAMING_PROCESS = "Redenumesc dosarul"
DELETING_ASK = "Точно?" DELETING_ASK = "Sunteți sigur?"
[SETTINGS_ACCOUNTS] [SETTINGS_ACCOUNTS]
LEGEND_ACCOUNTS = "Список Аккаунтов" LEGEND_ACCOUNTS = "Lista de Conturi"
BUTTON_ADD_ACCOUNT = "Добавить ещё аккаунт" BUTTON_ADD_ACCOUNT = "Adaugă un alt cont"
BUTTON_DELETE = "Удалить" BUTTON_DELETE = "Șterge"
LOADING_PROCESS = "Обновление списка аккаунтов" LOADING_PROCESS = "Actualizez lista de conturi"
DELETING_ASK = "Точно?" DELETING_ASK = "Sunteți sigur?"
[SETTINGS_IDENTITIES] [SETTINGS_IDENTITIES]
LEGEND_IDENTITY = "Настройки основного профиля" LEGEND_IDENTITY = "Setările de profil de bază"
LEGEND_IDENTITIES = "Дополнительные профили" LEGEND_IDENTITIES = "Profiluri suplimentare"
LABEL_DISPLAY_NAME = "Имя" LABEL_DISPLAY_NAME = "Nume"
LABEL_REPLY_TO = "Отвечать на" LABEL_REPLY_TO = "Răspunde la"
LABEL_SIGNATURE = "Подпись" LABEL_SIGNATURE = "Semnătură"
LABEL_ADD_SIGNATURE_TO_ALL = "Добавлять свою подпись ко всем исходящим сообщениям" LABEL_ADD_SIGNATURE_TO_ALL = "Adaugă semnătura la toate mesajele trimise"
BUTTON_ADD_IDENTITY = "Добавить профиль" BUTTON_ADD_IDENTITY = "Adăugați un profil"
BUTTON_DELETE = "Удалить" BUTTON_DELETE = "Șterge"
LOADING_PROCESS = "Обновление списка профилей" LOADING_PROCESS = "Actualizez lista de profile"
DELETING_ASK = "Точно?" DELETING_ASK = "Sunteți sigur?"
[SETTINGS_CHANGE_PASSWORD] [SETTINGS_CHANGE_PASSWORD]
LEGEND_CHANGE_PASSWORD = "Изменить Пароль" LEGEND_CHANGE_PASSWORD = "Schimbare parolă"
LABEL_CURRENT_PASSWORD = "Текущий пароль" LABEL_CURRENT_PASSWORD = "Parola curentă"
LABEL_NEW_PASSWORD = "Новый пароль" LABEL_NEW_PASSWORD = "Noua parolă"
LABEL_REPEAT_PASSWORD = "Повторить" LABEL_REPEAT_PASSWORD = "Confirmați parola"
BUTTON_UPDATE_PASSWORD = "Установить Новый Пароль" BUTTON_UPDATE_PASSWORD = "Salvați noua parolă"
[NOTIFICATIONS] [NOTIFICATIONS]
INVALID_TOKEN = "Неверный токен запроса" INVALID_TOKEN = "Semn invalid"
AUTH_ERROR = "Не удалось авторизоваться" AUTH_ERROR = "Nu se poate realiza conectarea"
ACCESS_ERROR = "Ошибка доступа" ACCESS_ERROR = "Eroare de acces"
CONNECTION_ERROR = "Ошибка соединения с сервером." CONNECTION_ERROR = "Eroare la conectarea la server."
CAPTCHA_ERROR = "Неправильное проверочное слово." CAPTCHA_ERROR = "Cuvântul de securitate nu este corect."
SOCIAL_FACEBOOK_LOGIN_ACCESS_DISABLE = "К данному социальному пользователю еще не прикреплен почтовый аккаунт. Войдите в систему под своим почтовым аккаунтом и включите эту возможность в настройках." SOCIAL_FACEBOOK_LOGIN_ACCESS_DISABLE = "Pentru acest utilizator nu sa asigurat încă un cont de e-mail. Conectați-vă cu contul dvs. de e-mail și activați această caracteristică în setările."
SOCIAL_TWITTER_LOGIN_ACCESS_DISABLE = "К данному социальному пользователю еще не прикреплен почтовый аккаунт. Войдите в систему под своим почтовым аккаунтом и включите эту возможность в настройках." SOCIAL_TWITTER_LOGIN_ACCESS_DISABLE = "Pentru acest utilizator nu sa asigurat încă un cont de e-mail. Conectați-vă cu contul dvs. de e-mail și activați această caracteristică în setările."
SOCIAL_GOOGLE_LOGIN_ACCESS_DISABLE = "К данному социальному пользователю еще не прикреплен почтовый аккаунт. Войдите в систему под своим почтовым аккаунтом и включите эту возможность в настройках." SOCIAL_GOOGLE_LOGIN_ACCESS_DISABLE = "Pentru acest utilizator nu sa asigurat încă un cont de e-mail. Conectați-vă cu contul dvs. de e-mail și activați această caracteristică în setările."
DOMAIN_NOT_ALLOWED = "Данный домен не разрешен" DOMAIN_NOT_ALLOWED = "Domeniul nu apartine de Wey5"
ACCOUNT_NOT_ALLOWED = "Данный аккаунт не разрешен" ACCOUNT_NOT_ALLOWED = "Contul nu are permisiunea de conectare"
CANT_GET_MESSAGE_LIST = "Не могу получить список писем" CANT_GET_MESSAGE_LIST = "Nu găsesc o lista de scrisori"
CANT_GET_MESSAGE = "Не могу получить письмо" CANT_GET_MESSAGE = "Nu pot obține scrisoarea. Încercați din nou"
CANT_DELETE_MESSAGE = "Не могу удалить письмо" CANT_DELETE_MESSAGE = "Nu pot șterge scrisoarea. Încercați din nou"
CANT_MOVE_MESSAGE = "Не могу переместить письмо" CANT_MOVE_MESSAGE = "Nu pot muta scrisoarea.Încercați din nou"
CANT_SAVE_MESSAGE = "Не могу сохранить письмо" CANT_SAVE_MESSAGE = "Nu pot salva mesajul. Încercați din nou"
CANT_SEND_MESSAGE = "Не могу отправить письмо" CANT_SEND_MESSAGE = "Nu pot trimite scrisoarea.Încercați din nou"
INVALID_RECIPIENTS = "Проверьте правильность ввода всех адресов." INVALID_RECIPIENTS = "Verificați dacă ați introdus toate adresele."
CANT_CREATE_FOLDER = "Не могу создать папку" CANT_CREATE_FOLDER = "Nu crea dosarul. Încercați din nou"
CANT_RENAME_FOLDER = "Не могу переименовать папку" CANT_RENAME_FOLDER = "Nu pot redenumi dosarul. Încercați din nou"
CANT_DELETE_FOLDER = "Не могу удалить папку" CANT_DELETE_FOLDER = "Nu pot șterge dosarul. Încercați din nou"
CANT_DELETE_NON_EMPTY_FOLDER = "Не могу удалить непустую папку" CANT_DELETE_NON_EMPTY_FOLDER = "Nu pot șterge un dosar care nu este gol"
CANT_SUBSCRIBE_FOLDER = "Не могу подписать папку" CANT_SUBSCRIBE_FOLDER = "Nu pot semna dosarul. Încercați din nou"
CANT_UNSUBSCRIBE_FOLDER = "Не могу отписать папку" CANT_UNSUBSCRIBE_FOLDER = "Nu mă pot dezbona. Încercați din nou"
CANT_SAVE_SETTINGS = "Не могу сохранить настройки" CANT_SAVE_SETTINGS = "Nu pot salva opțiunile. Încercați din nou"
CANT_SAVE_PLUGIN_SETTINGS = "Не могу сохранить настройки" CANT_SAVE_PLUGIN_SETTINGS = "Nu pot salva setările. Încercați din nou"
DOMAIN_ALREADY_EXISTS = "Домен уже существует" DOMAIN_ALREADY_EXISTS = "Domeniu există deja."
CANT_INSTALL_PACKAGE = "Ошибка установки пакета" CANT_INSTALL_PACKAGE = "Nu pot instala pachetul.Încercați din nou"
CANT_DELETE_PACKAGE = "Ошибка удаления пакета" CANT_DELETE_PACKAGE = "Nu pot șterge pachetul. Încercați din nou"
INVALID_PLUGIN_PACKAGE = "Ошибка пакета плагина" INVALID_PLUGIN_PACKAGE = "Pachetul este invalid"
UNSUPPORTED_PLUGIN_PACKAGE = "Для работы плагина необходима полная поддержка сервера" UNSUPPORTED_PLUGIN_PACKAGE = "Plugin-ul necesită sprijinul complet al serverului"
LICENSING_SERVER_IS_UNAVAILABLE = "Сервер подписок временно не доступен." LICENSING_SERVER_IS_UNAVAILABLE = "Server de abonamente este temporar indisponibil."
LICENSING_EXPIRED = "Подписка на данный домен устарела." LICENSING_EXPIRED = "Licența a expirat."
LICENSING_BANNED = "Подписка на данный домен заблокирована." LICENSING_BANNED = "Licență restricționată."
DEMO_SEND_MESSAGE_ERROR = "Демо аккаунту отправка писем на внешние почтовые адреса запрещена!" DEMO_SEND_MESSAGE_ERROR = "Cont demo trimite e-mail la adresele de e-mail externe este interzisă!"
ACCOUNT_ALREADY_EXISTS = "Аккаунт уже добавлен" ACCOUNT_ALREADY_EXISTS = "Contul deja există"
MAIL_SERVER_ERROR = "Ошибка доступа к почтовому серверу" MAIL_SERVER_ERROR = "Nu am reușit să accesez serverul de e-mail"
UNKNOWN_ERROR = "Неизвестная ошибка" UNKNOWN_ERROR = "Eroare necunoscută"
[STATIC] [STATIC]
BACK_LINK = "Обновить" BACK_LINK = "Actualizare"
DOMAIN_LIST_DESC = "Список доменов, к которым разрешен доступ через веб почту." DOMAIN_LIST_DESC = "Lista de domenii care au permisiunea de a fi accesate prin webmail."
PHP_EXSTENSIONS_ERROR_DESC = "Необходимые расширения PHP не установлены на вашем сервере!" PHP_EXSTENSIONS_ERROR_DESC = "Extensiile PHP necesare nu sunt instalate pe server-ul dvs.!"
PHP_VERSION_ERROR_DESC = "Ваша версия PHP (%VERSION%) ниже требуемой 5.3.0!" PHP_VERSION_ERROR_DESC = "Versiunea dvs. de PHP (%VERSION%) este mai mica de cea dorită, 5.3.0!"
NO_SCRIPT_TITLE = "Для работы приложения необходим JavaScript." NO_SCRIPT_TITLE = "Pentru rulare este necesar JavaScript."
NO_SCRIPT_DESC = "По-видимому, JavaScript либо не поддерживается вашим браузером, либо отключен. NO_SCRIPT_DESC = "Aparent, JavaScript nu este instalat, sau nu este acceptat de browserul dumneavoastră.
Включите JavaScript, изменив настройки браузера, затем повторите попытку." Activați JavaScript, schimband optiunile browserului dvs., apoi încercați din nou."
NO_COOKIE_TITLE = "Для работы приложения необходимы Cookie." NO_COOKIE_TITLE = "Cererea necesită Cookie-uri."
NO_COOKIE_DESC = "По-видимому, Cookie либо не поддерживаются вашим браузером, либо отключены. NO_COOKIE_DESC = "Aparent, Cookie sau nu este acceptat de browser-ul dvs. sau oprit.
Включите Cookie, изменив настройки браузера, затем повторите попытку." Întoarceți Cookie, schimband optiunile browserului dvs., apoi încercați din nou."
BAD_BROWSER_TITLE = "Ваш браузер устарел." BAD_BROWSER_TITLE = "Browser-ul dvs. este depășit."
BAD_BROWSER_DESC = "Чтобы использовать все возможности приложения, BAD_BROWSER_DESC = "Pentru a utiliza toate caracteristicile cererii,
загрузите и установите один из этих браузеров:" descărcați și instalați unul dintre aceste browsere:"

View file

@ -637,7 +637,7 @@
border-radius: 8px; border-radius: 8px;
} }
/*! normalize.css 2012-03-11T12:53 UTC - http://github.com/necolas/normalize.css */ /*! normalize.css 2012-03-11T12:53 UTC - http://github.com/necolas/normalize.css */
/* ============================================================================= /* =============================================================================
@ -1142,7 +1142,7 @@ table {
border-collapse: collapse; border-collapse: collapse;
border-spacing: 0; border-spacing: 0;
} }
@charset "UTF-8"; @charset "UTF-8";
@font-face { @font-face {
@ -1474,7 +1474,7 @@ table {
.icon-mail:before { .icon-mail:before {
content: "\e062"; content: "\e062";
} }
/** initial setup **/ /** initial setup **/
.nano { .nano {
/* /*
@ -1591,7 +1591,7 @@ table {
.nano > .pane2:hover > .slider2, .nano > .pane2.active > .slider2 { .nano > .pane2:hover > .slider2, .nano > .pane2.active > .slider2 {
background-color: rgba(0, 0, 0, 0.4); background-color: rgba(0, 0, 0, 0.4);
} }
/* Magnific Popup CSS */ /* Magnific Popup CSS */
.mfp-bg { .mfp-bg {
top: 0; top: 0;
@ -1956,7 +1956,7 @@ img.mfp-img {
right: 0; right: 0;
padding-top: 0; } padding-top: 0; }
/* overlay at start */ /* overlay at start */
.mfp-fade.mfp-bg { .mfp-fade.mfp-bg {
@ -2002,7 +2002,7 @@ img.mfp-img {
-moz-transform: translateX(50px); -moz-transform: translateX(50px);
transform: translateX(50px); transform: translateX(50px);
} }
.simple-pace { .simple-pace {
-webkit-pointer-events: none; -webkit-pointer-events: none;
pointer-events: none; pointer-events: none;
@ -2073,7 +2073,7 @@ img.mfp-img {
@keyframes simple-pace-stripe-animation { @keyframes simple-pace-stripe-animation {
0% { transform: none; transform: none; } 0% { transform: none; transform: none; }
100% { transform: translate(-32px, 0); transform: translate(-32px, 0); } 100% { transform: translate(-32px, 0); transform: translate(-32px, 0); }
} }
.inputosaurus-container { .inputosaurus-container {
background-color:#fff; background-color:#fff;
border:1px solid #bcbec0; border:1px solid #bcbec0;
@ -2141,7 +2141,7 @@ img.mfp-img {
box-shadow:none; box-shadow:none;
} }
.inputosaurus-input-hidden { display:none; } .inputosaurus-input-hidden { display:none; }
.flag-wrapper { .flag-wrapper {
width: 24px; width: 24px;
height: 16px; height: 16px;
@ -2184,7 +2184,7 @@ img.mfp-img {
.flag.flag-pt-br {background-position: -192px -11px} .flag.flag-pt-br {background-position: -192px -11px}
.flag.flag-cn, .flag.flag-zh-tw, .flag.flag-zh-cn, .flag.flag-zh-hk {background-position: -208px -22px} .flag.flag-cn, .flag.flag-zh-tw, .flag.flag-zh-cn, .flag.flag-zh-hk {background-position: -208px -22px}
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */ /* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
.clearfix { .clearfix {
*zoom: 1; *zoom: 1;

View file

@ -1,5 +1,5 @@
/*! RainLoop Webmail Admin Module (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */ /*! RainLoop Webmail Admin Module (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
(function (window, $, ko, crossroads, hasher, _) { (function (window, $, ko, crossroads, hasher, _) {
'use strict'; 'use strict';
@ -70,14 +70,14 @@ var
$document = $(window.document), $document = $(window.document),
NotificationClass = window.Notification && window.Notification.requestPermission ? window.Notification : null NotificationClass = window.Notification && window.Notification.requestPermission ? window.Notification : null
; ;
/*jshint onevar: false*/ /*jshint onevar: false*/
/** /**
* @type {?AdminApp} * @type {?AdminApp}
*/ */
var RL = null; var RL = null;
/*jshint onevar: true*/ /*jshint onevar: true*/
/** /**
* @type {?} * @type {?}
*/ */
@ -226,7 +226,7 @@ if (Globals.bAllowPdfPreview && navigator && navigator.mimeTypes)
return oType && 'application/pdf' === oType.type; return oType && 'application/pdf' === oType.type;
}); });
} }
Consts.Defaults = {}; Consts.Defaults = {};
Consts.Values = {}; Consts.Values = {};
Consts.DataImages = {}; Consts.DataImages = {};
@ -344,7 +344,7 @@ Consts.DataImages.UserDotPic = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA
* @type {string} * @type {string}
*/ */
Consts.DataImages.TranspPic = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQIW2NkAAIAAAoAAggA9GkAAAAASUVORK5CYII='; Consts.DataImages.TranspPic = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQIW2NkAAIAAAoAAggA9GkAAAAASUVORK5CYII=';
/** /**
* @enum {string} * @enum {string}
*/ */
@ -688,7 +688,7 @@ Enums.Notification = {
'UnknownNotification': 999, 'UnknownNotification': 999,
'UnknownError': 999 'UnknownError': 999
}; };
Utils.trim = $.trim; Utils.trim = $.trim;
Utils.inArray = $.inArray; Utils.inArray = $.inArray;
Utils.isArray = _.isArray; Utils.isArray = _.isArray;
@ -2383,7 +2383,7 @@ Utils.computedPagenatorHelper = function (koCurrentPage, koPageCount)
return aResult; return aResult;
}; };
}; };
// Base64 encode / decode // Base64 encode / decode
// http://www.webtoolkit.info/ // http://www.webtoolkit.info/
@ -2546,7 +2546,7 @@ Base64 = {
} }
}; };
/*jslint bitwise: false*/ /*jslint bitwise: false*/
ko.bindingHandlers.tooltip = { ko.bindingHandlers.tooltip = {
'init': function (oElement, fValueAccessor) { 'init': function (oElement, fValueAccessor) {
if (!Globals.bMobileDevice) if (!Globals.bMobileDevice)
@ -3168,7 +3168,7 @@ ko.observable.fn.validateFunc = function (fFunc)
return this; return this;
}; };
/** /**
* @constructor * @constructor
*/ */
@ -3466,7 +3466,7 @@ LinkBuilder.prototype.socialFacebook = function ()
{ {
return this.sServer + 'SocialFacebook' + ('' !== this.sSpecSuffix ? '/' + this.sSpecSuffix + '/' : ''); return this.sServer + 'SocialFacebook' + ('' !== this.sSpecSuffix ? '/' + this.sSpecSuffix + '/' : '');
}; };
/** /**
* @type {Object} * @type {Object}
*/ */
@ -3560,7 +3560,7 @@ Plugins.settingsGet = function (sPluginSection, sName)
}; };
/** /**
* @constructor * @constructor
*/ */
@ -3634,7 +3634,7 @@ CookieDriver.prototype.get = function (sKey)
return mResult; return mResult;
}; };
/** /**
* @constructor * @constructor
*/ */
@ -3706,7 +3706,7 @@ LocalStorageDriver.prototype.get = function (sKey)
return mResult; return mResult;
}; };
/** /**
* @constructor * @constructor
*/ */
@ -3749,7 +3749,7 @@ LocalStorage.prototype.get = function (iKey)
{ {
return this.oDriver ? this.oDriver.get('p' + iKey) : null; return this.oDriver ? this.oDriver.get('p' + iKey) : null;
}; };
/** /**
* @constructor * @constructor
*/ */
@ -3762,7 +3762,7 @@ KnoinAbstractBoot.prototype.bootstart = function ()
{ {
}; };
/** /**
* @param {string=} sPosition = '' * @param {string=} sPosition = ''
* @param {string=} sTemplate = '' * @param {string=} sTemplate = ''
@ -3822,7 +3822,7 @@ KnoinAbstractViewModel.prototype.viewModelPosition = function ()
KnoinAbstractViewModel.prototype.cancelCommand = KnoinAbstractViewModel.prototype.closeCommand = function () KnoinAbstractViewModel.prototype.cancelCommand = KnoinAbstractViewModel.prototype.closeCommand = function ()
{ {
}; };
/** /**
* @param {string} sScreenName * @param {string} sScreenName
* @param {?=} aViewModels = [] * @param {?=} aViewModels = []
@ -3898,7 +3898,7 @@ KnoinAbstractScreen.prototype.__start = function ()
this.oCross = oRoute; this.oCross = oRoute;
} }
}; };
/** /**
* @constructor * @constructor
*/ */
@ -4287,7 +4287,7 @@ Knoin.prototype.bootstart = function ()
}; };
kn = new Knoin(); kn = new Knoin();
/** /**
* @param {string=} sEmail * @param {string=} sEmail
* @param {string=} sName * @param {string=} sName
@ -4651,7 +4651,7 @@ EmailModel.prototype.inputoTagLine = function ()
{ {
return 0 < this.name.length ? this.name + ' (' + this.email + ')' : this.email; return 0 < this.name.length ? this.name + ' (' + this.email + ')' : this.email;
}; };
/** /**
* @constructor * @constructor
* @extends KnoinAbstractViewModel * @extends KnoinAbstractViewModel
@ -4883,7 +4883,7 @@ PopupsDomainViewModel.prototype.clearForm = function ()
this.smtpAuth(true); this.smtpAuth(true);
this.whiteList(''); this.whiteList('');
}; };
/** /**
* @constructor * @constructor
* @extends KnoinAbstractViewModel * @extends KnoinAbstractViewModel
@ -5020,7 +5020,7 @@ PopupsPluginViewModel.prototype.onBuild = function ()
return bResult; return bResult;
}); });
}; };
/** /**
* @constructor * @constructor
* @extends KnoinAbstractViewModel * @extends KnoinAbstractViewModel
@ -5136,7 +5136,7 @@ PopupsActivateViewModel.prototype.validateSubscriptionKey = function ()
{ {
var sValue = this.key(); var sValue = this.key();
return '' === sValue || !!/^RL[\d]+-[A-Z0-9\-]+Z$/.test(Utils.trim(sValue)); return '' === sValue || !!/^RL[\d]+-[A-Z0-9\-]+Z$/.test(Utils.trim(sValue));
}; };
/** /**
* @constructor * @constructor
* @extends KnoinAbstractViewModel * @extends KnoinAbstractViewModel
@ -5210,7 +5210,7 @@ PopupsLanguagesViewModel.prototype.changeLanguage = function (sLang)
RL.data().mainLanguage(sLang); RL.data().mainLanguage(sLang);
this.cancelCommand(); this.cancelCommand();
}; };
/** /**
* @constructor * @constructor
* @extends KnoinAbstractViewModel * @extends KnoinAbstractViewModel
@ -5328,7 +5328,7 @@ PopupsAskViewModel.prototype.onBuild = function ()
}); });
}; };
/** /**
* @constructor * @constructor
* @extends KnoinAbstractViewModel * @extends KnoinAbstractViewModel
@ -5415,7 +5415,7 @@ AdminLoginViewModel.prototype.onHide = function ()
{ {
this.loginFocus(false); this.loginFocus(false);
}; };
/** /**
* @param {?} oScreen * @param {?} oScreen
* *
@ -5437,7 +5437,7 @@ AdminMenuViewModel.prototype.link = function (sRoute)
{ {
return '#/' + sRoute; return '#/' + sRoute;
}; };
/** /**
* @constructor * @constructor
* @extends KnoinAbstractViewModel * @extends KnoinAbstractViewModel
@ -5459,7 +5459,7 @@ AdminPaneViewModel.prototype.logoutClick = function ()
RL.remote().adminLogout(function () { RL.remote().adminLogout(function () {
RL.loginAndLogoutReload(); RL.loginAndLogoutReload();
}); });
}; };
/** /**
* @constructor * @constructor
*/ */
@ -5559,7 +5559,7 @@ AdminGeneral.prototype.selectLanguage = function ()
{ {
kn.showScreenPopup(PopupsLanguagesViewModel); kn.showScreenPopup(PopupsLanguagesViewModel);
}; };
/** /**
* @constructor * @constructor
*/ */
@ -5611,7 +5611,7 @@ AdminLogin.prototype.onBuild = function ()
}, 50); }, 50);
}; };
/** /**
* @constructor * @constructor
*/ */
@ -5680,7 +5680,7 @@ AdminBranding.prototype.onBuild = function ()
}, 50); }, 50);
}; };
/** /**
* @constructor * @constructor
*/ */
@ -5900,7 +5900,7 @@ AdminContacts.prototype.onBuild = function ()
}, 50); }, 50);
}; };
/** /**
* @constructor * @constructor
*/ */
@ -5989,7 +5989,7 @@ AdminDomains.prototype.onDomainListChangeRequest = function ()
{ {
RL.reloadDomainList(); RL.reloadDomainList();
}; };
/** /**
* @constructor * @constructor
*/ */
@ -6077,7 +6077,7 @@ AdminSecurity.prototype.phpInfoLink = function ()
{ {
return RL.link().phpInfo(); return RL.link().phpInfo();
}; };
/** /**
* @constructor * @constructor
*/ */
@ -6193,7 +6193,7 @@ AdminSocial.prototype.onBuild = function ()
}, 50); }, 50);
}; };
/** /**
* @constructor * @constructor
*/ */
@ -6290,7 +6290,7 @@ AdminPlugins.prototype.onPluginDisableRequest = function (sResult, oData)
RL.reloadPluginList(); RL.reloadPluginList();
}; };
/** /**
* @constructor * @constructor
*/ */
@ -6394,7 +6394,7 @@ AdminPackages.prototype.installPackage = function (oPackage)
RL.remote().packageInstall(this.requestHelper(oPackage, true), oPackage); RL.remote().packageInstall(this.requestHelper(oPackage, true), oPackage);
} }
}; };
/** /**
* @constructor * @constructor
*/ */
@ -6445,7 +6445,7 @@ AdminLicensing.prototype.licenseExpiredMomentValue = function ()
{ {
var oDate = moment.unix(this.licenseExpired()); var oDate = moment.unix(this.licenseExpired());
return oDate.format('LL') + ' (' + oDate.from(moment()) + ')'; return oDate.format('LL') + ' (' + oDate.from(moment()) + ')';
}; };
/** /**
* @constructor * @constructor
*/ */
@ -6520,7 +6520,7 @@ AbstractData.prototype.populateDataOnStart = function()
this.contactsIsAllowed(!!RL.settingsGet('ContactsIsAllowed')); this.contactsIsAllowed(!!RL.settingsGet('ContactsIsAllowed'));
}; };
/** /**
* @constructor * @constructor
* @extends AbstractData * @extends AbstractData
@ -6554,7 +6554,7 @@ _.extend(AdminDataStorage.prototype, AbstractData.prototype);
AdminDataStorage.prototype.populateDataOnStart = function() AdminDataStorage.prototype.populateDataOnStart = function()
{ {
AbstractData.prototype.populateDataOnStart.call(this); AbstractData.prototype.populateDataOnStart.call(this);
}; };
/** /**
* @constructor * @constructor
*/ */
@ -6828,7 +6828,7 @@ AbstractAjaxRemoteStorage.prototype.jsVersion = function (fCallback, sVersion)
'Version': sVersion 'Version': sVersion
}); });
}; };
/** /**
* @constructor * @constructor
* @extends AbstractAjaxRemoteStorage * @extends AbstractAjaxRemoteStorage
@ -7072,7 +7072,7 @@ AdminAjaxRemoteStorage.prototype.adminPing = function (fCallback)
{ {
this.defaultRequest(fCallback, 'AdminPing'); this.defaultRequest(fCallback, 'AdminPing');
}; };
/** /**
* @constructor * @constructor
*/ */
@ -7138,7 +7138,7 @@ AbstractCacheStorage.prototype.setEmailsPicsHashesData = function (oData)
{ {
this.oEmailsPicsHashes = oData; this.oEmailsPicsHashes = oData;
}; };
/** /**
* @constructor * @constructor
* @extends AbstractCacheStorage * @extends AbstractCacheStorage
@ -7149,7 +7149,7 @@ function AdminCacheStorage()
} }
_.extend(AdminCacheStorage.prototype, AbstractCacheStorage.prototype); _.extend(AdminCacheStorage.prototype, AbstractCacheStorage.prototype);
/** /**
* @param {Array} aViewModels * @param {Array} aViewModels
* @constructor * @constructor
@ -7327,7 +7327,7 @@ AbstractSettings.prototype.routes = function ()
['', oRules] ['', oRules]
]; ];
}; };
/** /**
* @constructor * @constructor
* @extends KnoinAbstractScreen * @extends KnoinAbstractScreen
@ -7342,7 +7342,7 @@ _.extend(AdminLoginScreen.prototype, KnoinAbstractScreen.prototype);
AdminLoginScreen.prototype.onShow = function () AdminLoginScreen.prototype.onShow = function ()
{ {
RL.setTitle(''); RL.setTitle('');
}; };
/** /**
* @constructor * @constructor
* @extends AbstractSettings * @extends AbstractSettings
@ -7362,7 +7362,7 @@ AdminSettingsScreen.prototype.onShow = function ()
// AbstractSettings.prototype.onShow.call(this); // AbstractSettings.prototype.onShow.call(this);
RL.setTitle(''); RL.setTitle('');
}; };
/** /**
* @constructor * @constructor
* @extends KnoinAbstractBoot * @extends KnoinAbstractBoot
@ -7678,7 +7678,7 @@ AbstractApp.prototype.bootstart = function ()
ssm.ready(); ssm.ready();
}; };
/** /**
* @constructor * @constructor
* @extends AbstractApp * @extends AbstractApp
@ -7917,7 +7917,7 @@ AdminApp.prototype.bootstart = function ()
* @type {AdminApp} * @type {AdminApp}
*/ */
RL = new AdminApp(); RL = new AdminApp();
$html.addClass(Globals.bMobileDevice ? 'mobile' : 'no-mobile'); $html.addClass(Globals.bMobileDevice ? 'mobile' : 'no-mobile');
$window.keydown(Utils.killCtrlAandS).keyup(Utils.killCtrlAandS); $window.keydown(Utils.killCtrlAandS).keyup(Utils.killCtrlAandS);
@ -7964,9 +7964,9 @@ window['__RLBOOT'] = function (fCall) {
window['__RLBOOT'] = null; window['__RLBOOT'] = null;
}); });
}; };
if (window.SimplePace) { if (window.SimplePace) {
window.SimplePace.add(10); window.SimplePace.add(10);
} }
}(window, jQuery, ko, crossroads, hasher, _)); }(window, jQuery, ko, crossroads, hasher, _));

File diff suppressed because one or more lines are too long

View file

@ -1,5 +1,5 @@
/*! RainLoop Webmail Main Module (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */ /*! RainLoop Webmail Main Module (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
(function (window, $, ko, crossroads, hasher, moment, Jua, _, ifvisible) { (function (window, $, ko, crossroads, hasher, moment, Jua, _, ifvisible) {
'use strict'; 'use strict';
@ -70,14 +70,14 @@ var
$document = $(window.document), $document = $(window.document),
NotificationClass = window.Notification && window.Notification.requestPermission ? window.Notification : null NotificationClass = window.Notification && window.Notification.requestPermission ? window.Notification : null
; ;
/*jshint onevar: false*/ /*jshint onevar: false*/
/** /**
* @type {?RainLoopApp} * @type {?RainLoopApp}
*/ */
var RL = null; var RL = null;
/*jshint onevar: true*/ /*jshint onevar: true*/
/** /**
* @type {?} * @type {?}
*/ */
@ -226,7 +226,7 @@ if (Globals.bAllowPdfPreview && navigator && navigator.mimeTypes)
return oType && 'application/pdf' === oType.type; return oType && 'application/pdf' === oType.type;
}); });
} }
Consts.Defaults = {}; Consts.Defaults = {};
Consts.Values = {}; Consts.Values = {};
Consts.DataImages = {}; Consts.DataImages = {};
@ -344,7 +344,7 @@ Consts.DataImages.UserDotPic = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA
* @type {string} * @type {string}
*/ */
Consts.DataImages.TranspPic = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQIW2NkAAIAAAoAAggA9GkAAAAASUVORK5CYII='; Consts.DataImages.TranspPic = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQIW2NkAAIAAAoAAggA9GkAAAAASUVORK5CYII=';
/** /**
* @enum {string} * @enum {string}
*/ */
@ -688,7 +688,7 @@ Enums.Notification = {
'UnknownNotification': 999, 'UnknownNotification': 999,
'UnknownError': 999 'UnknownError': 999
}; };
Utils.trim = $.trim; Utils.trim = $.trim;
Utils.inArray = $.inArray; Utils.inArray = $.inArray;
Utils.isArray = _.isArray; Utils.isArray = _.isArray;
@ -2383,7 +2383,7 @@ Utils.computedPagenatorHelper = function (koCurrentPage, koPageCount)
return aResult; return aResult;
}; };
}; };
// Base64 encode / decode // Base64 encode / decode
// http://www.webtoolkit.info/ // http://www.webtoolkit.info/
@ -2546,7 +2546,7 @@ Base64 = {
} }
}; };
/*jslint bitwise: false*/ /*jslint bitwise: false*/
ko.bindingHandlers.tooltip = { ko.bindingHandlers.tooltip = {
'init': function (oElement, fValueAccessor) { 'init': function (oElement, fValueAccessor) {
if (!Globals.bMobileDevice) if (!Globals.bMobileDevice)
@ -3168,7 +3168,7 @@ ko.observable.fn.validateFunc = function (fFunc)
return this; return this;
}; };
/** /**
* @constructor * @constructor
*/ */
@ -3466,7 +3466,7 @@ LinkBuilder.prototype.socialFacebook = function ()
{ {
return this.sServer + 'SocialFacebook' + ('' !== this.sSpecSuffix ? '/' + this.sSpecSuffix + '/' : ''); return this.sServer + 'SocialFacebook' + ('' !== this.sSpecSuffix ? '/' + this.sSpecSuffix + '/' : '');
}; };
/** /**
* @type {Object} * @type {Object}
*/ */
@ -3560,7 +3560,7 @@ Plugins.settingsGet = function (sPluginSection, sName)
}; };
function NewHtmlEditorWrapper(oElement, fOnBlur, fOnReady) function NewHtmlEditorWrapper(oElement, fOnBlur, fOnReady)
{ {
var self = this; var self = this;
@ -3763,7 +3763,7 @@ NewHtmlEditorWrapper.prototype.clear = function (bFocus)
this.setHtml('', bFocus); this.setHtml('', bFocus);
}; };
/** /**
* @constructor * @constructor
* @param {koProperty} oKoList * @param {koProperty} oKoList
@ -4304,7 +4304,7 @@ Selector.prototype.on = function (sEventName, fCallback)
{ {
this.oCallbacks[sEventName] = fCallback; this.oCallbacks[sEventName] = fCallback;
}; };
/** /**
* @constructor * @constructor
*/ */
@ -4378,7 +4378,7 @@ CookieDriver.prototype.get = function (sKey)
return mResult; return mResult;
}; };
/** /**
* @constructor * @constructor
*/ */
@ -4450,7 +4450,7 @@ LocalStorageDriver.prototype.get = function (sKey)
return mResult; return mResult;
}; };
/** /**
* @constructor * @constructor
*/ */
@ -4493,7 +4493,7 @@ LocalStorage.prototype.get = function (iKey)
{ {
return this.oDriver ? this.oDriver.get('p' + iKey) : null; return this.oDriver ? this.oDriver.get('p' + iKey) : null;
}; };
/** /**
* @constructor * @constructor
*/ */
@ -4506,7 +4506,7 @@ KnoinAbstractBoot.prototype.bootstart = function ()
{ {
}; };
/** /**
* @param {string=} sPosition = '' * @param {string=} sPosition = ''
* @param {string=} sTemplate = '' * @param {string=} sTemplate = ''
@ -4566,7 +4566,7 @@ KnoinAbstractViewModel.prototype.viewModelPosition = function ()
KnoinAbstractViewModel.prototype.cancelCommand = KnoinAbstractViewModel.prototype.closeCommand = function () KnoinAbstractViewModel.prototype.cancelCommand = KnoinAbstractViewModel.prototype.closeCommand = function ()
{ {
}; };
/** /**
* @param {string} sScreenName * @param {string} sScreenName
* @param {?=} aViewModels = [] * @param {?=} aViewModels = []
@ -4642,7 +4642,7 @@ KnoinAbstractScreen.prototype.__start = function ()
this.oCross = oRoute; this.oCross = oRoute;
} }
}; };
/** /**
* @constructor * @constructor
*/ */
@ -5031,7 +5031,7 @@ Knoin.prototype.bootstart = function ()
}; };
kn = new Knoin(); kn = new Knoin();
/** /**
* @param {string=} sEmail * @param {string=} sEmail
* @param {string=} sName * @param {string=} sName
@ -5395,7 +5395,7 @@ EmailModel.prototype.inputoTagLine = function ()
{ {
return 0 < this.name.length ? this.name + ' (' + this.email + ')' : this.email; return 0 < this.name.length ? this.name + ' (' + this.email + ')' : this.email;
}; };
/** /**
* @constructor * @constructor
*/ */
@ -5517,7 +5517,7 @@ ContactModel.prototype.lineAsCcc = function ()
return aResult.join(' '); return aResult.join(' ');
}; };
/** /**
* @param {number=} iType = Enums.ContactPropertyType.Unknown * @param {number=} iType = Enums.ContactPropertyType.Unknown
* @param {string=} sValue = '' * @param {string=} sValue = ''
@ -5539,7 +5539,7 @@ function ContactPropertyModel(iType, sValue, bFocused, sPlaceholder)
return sPlaceholder ? Utils.i18n(sPlaceholder) : ''; return sPlaceholder ? Utils.i18n(sPlaceholder) : '';
}, this); }, this);
} }
/** /**
* @constructor * @constructor
*/ */
@ -5775,7 +5775,7 @@ AttachmentModel.prototype.iconClass = function ()
return sClass; return sClass;
}; };
/** /**
* @constructor * @constructor
* @param {string} sId * @param {string} sId
@ -5836,7 +5836,7 @@ ComposeAttachmentModel.prototype.initByUploadJson = function (oJsonAttachment)
} }
return bResult; return bResult;
}; };
/** /**
* @constructor * @constructor
*/ */
@ -6814,7 +6814,7 @@ MessageModel.prototype.showInternalImages = function (bLazy)
Utils.windowResize(500); Utils.windowResize(500);
} }
}; };
/** /**
* @constructor * @constructor
*/ */
@ -7148,7 +7148,7 @@ FolderModel.prototype.printableFullName = function ()
{ {
return this.fullName.split(this.delimiter).join(' / '); return this.fullName.split(this.delimiter).join(' / ');
}; };
/** /**
* @param {string} sEmail * @param {string} sEmail
* @param {boolean=} bCanBeDelete = true * @param {boolean=} bCanBeDelete = true
@ -7169,7 +7169,7 @@ AccountModel.prototype.email = '';
AccountModel.prototype.changeAccountLink = function () AccountModel.prototype.changeAccountLink = function ()
{ {
return RL.link().change(this.email); return RL.link().change(this.email);
}; };
/** /**
* @param {string} sId * @param {string} sId
* @param {string} sEmail * @param {string} sEmail
@ -7205,7 +7205,7 @@ IdentityModel.prototype.formattedNameForEmail = function ()
var sName = this.name(); var sName = this.name();
return '' === sName ? this.email() : '"' + Utils.quoteName(sName) + '" <' + this.email() + '>'; return '' === sName ? this.email() : '"' + Utils.quoteName(sName) + '" <' + this.email() + '>';
}; };
/** /**
* @constructor * @constructor
* @extends KnoinAbstractViewModel * @extends KnoinAbstractViewModel
@ -7315,7 +7315,7 @@ PopupsFolderClearViewModel.prototype.onBuild = function ()
return bResult; return bResult;
}); });
}; };
/** /**
* @constructor * @constructor
* @extends KnoinAbstractViewModel * @extends KnoinAbstractViewModel
@ -7439,7 +7439,7 @@ PopupsFolderCreateViewModel.prototype.onBuild = function ()
return bResult; return bResult;
}); });
}; };
/** /**
* @constructor * @constructor
* @extends KnoinAbstractViewModel * @extends KnoinAbstractViewModel
@ -7558,7 +7558,7 @@ PopupsFolderSystemViewModel.prototype.onBuild = function ()
}); });
}; };
/** /**
* @constructor * @constructor
* @extends KnoinAbstractViewModel * @extends KnoinAbstractViewModel
@ -9039,7 +9039,7 @@ PopupsComposeViewModel.prototype.triggerForResize = function ()
this.editorResizeThrottle(); this.editorResizeThrottle();
}; };
/** /**
* @constructor * @constructor
* @extends KnoinAbstractViewModel * @extends KnoinAbstractViewModel
@ -9679,7 +9679,7 @@ PopupsContactsViewModel.prototype.onHide = function ()
oItem.checked(false); oItem.checked(false);
}); });
}; };
/** /**
* @constructor * @constructor
* @extends KnoinAbstractViewModel * @extends KnoinAbstractViewModel
@ -9823,7 +9823,7 @@ PopupsAdvancedSearchViewModel.prototype.onBuild = function ()
return bResult; return bResult;
}); });
}; };
/** /**
* @constructor * @constructor
* @extends KnoinAbstractViewModel * @extends KnoinAbstractViewModel
@ -9951,7 +9951,7 @@ PopupsAddAccountViewModel.prototype.onBuild = function ()
return bResult; return bResult;
}); });
}; };
/** /**
* @constructor * @constructor
* @extends KnoinAbstractViewModel * @extends KnoinAbstractViewModel
@ -10113,7 +10113,7 @@ PopupsIdentityViewModel.prototype.onBuild = function ()
return bResult; return bResult;
}); });
}; };
/** /**
* @constructor * @constructor
* @extends KnoinAbstractViewModel * @extends KnoinAbstractViewModel
@ -10187,7 +10187,7 @@ PopupsLanguagesViewModel.prototype.changeLanguage = function (sLang)
RL.data().mainLanguage(sLang); RL.data().mainLanguage(sLang);
this.cancelCommand(); this.cancelCommand();
}; };
/** /**
* @constructor * @constructor
* @extends KnoinAbstractViewModel * @extends KnoinAbstractViewModel
@ -10305,7 +10305,7 @@ PopupsAskViewModel.prototype.onBuild = function ()
}); });
}; };
/** /**
* @constructor * @constructor
* @extends KnoinAbstractViewModel * @extends KnoinAbstractViewModel
@ -10368,7 +10368,7 @@ PopupsPgpKey.prototype.onShow = function (bPrivate, fCallback)
this.bPrivate = bPrivate; this.bPrivate = bPrivate;
this.fCallback = fCallback; this.fCallback = fCallback;
}; };
/** /**
* @constructor * @constructor
* @extends KnoinAbstractViewModel * @extends KnoinAbstractViewModel
@ -10640,7 +10640,7 @@ LoginViewModel.prototype.selectLanguage = function ()
kn.showScreenPopup(PopupsLanguagesViewModel); kn.showScreenPopup(PopupsLanguagesViewModel);
}; };
/** /**
* @constructor * @constructor
* @extends KnoinAbstractViewModel * @extends KnoinAbstractViewModel
@ -10707,7 +10707,7 @@ AbstractSystemDropDownViewModel.prototype.logoutClick = function ()
RL.loginAndLogoutReload(true, RL.settingsGet('ParentEmail') && 0 < RL.settingsGet('ParentEmail').length); RL.loginAndLogoutReload(true, RL.settingsGet('ParentEmail') && 0 < RL.settingsGet('ParentEmail').length);
}); });
}; };
/** /**
* @constructor * @constructor
* @extends AbstractSystemDropDownViewModel * @extends AbstractSystemDropDownViewModel
@ -10719,7 +10719,7 @@ function MailBoxSystemDropDownViewModel()
} }
Utils.extendAsViewModel('MailBoxSystemDropDownViewModel', MailBoxSystemDropDownViewModel, AbstractSystemDropDownViewModel); Utils.extendAsViewModel('MailBoxSystemDropDownViewModel', MailBoxSystemDropDownViewModel, AbstractSystemDropDownViewModel);
/** /**
* @constructor * @constructor
* @extends AbstractSystemDropDownViewModel * @extends AbstractSystemDropDownViewModel
@ -10731,7 +10731,7 @@ function SettingsSystemDropDownViewModel()
} }
Utils.extendAsViewModel('SettingsSystemDropDownViewModel', SettingsSystemDropDownViewModel, AbstractSystemDropDownViewModel); Utils.extendAsViewModel('SettingsSystemDropDownViewModel', SettingsSystemDropDownViewModel, AbstractSystemDropDownViewModel);
/** /**
* @constructor * @constructor
* @extends KnoinAbstractViewModel * @extends KnoinAbstractViewModel
@ -10861,7 +10861,7 @@ MailBoxFolderListViewModel.prototype.contactsClick = function ()
kn.showScreenPopup(PopupsContactsViewModel); kn.showScreenPopup(PopupsContactsViewModel);
} }
}; };
/** /**
* @constructor * @constructor
* @extends KnoinAbstractViewModel * @extends KnoinAbstractViewModel
@ -11780,7 +11780,7 @@ MailBoxMessageListViewModel.prototype.initUploaderForAppend = function ()
; ;
return !!oJua; return !!oJua;
}; };
/** /**
* @constructor * @constructor
* @extends KnoinAbstractViewModel * @extends KnoinAbstractViewModel
@ -12173,7 +12173,7 @@ MailBoxMessageViewViewModel.prototype.readReceipt = function (oMessage)
RL.reloadFlagsCurrentMessageListAndMessageFromCache(); RL.reloadFlagsCurrentMessageListAndMessageFromCache();
} }
}; };
/** /**
* @param {?} oScreen * @param {?} oScreen
* *
@ -12200,7 +12200,7 @@ SettingsMenuViewModel.prototype.backToMailBoxClick = function ()
{ {
kn.setHash(RL.link().inbox()); kn.setHash(RL.link().inbox());
}; };
/** /**
* @constructor * @constructor
* @extends KnoinAbstractViewModel * @extends KnoinAbstractViewModel
@ -12223,7 +12223,7 @@ SettingsPaneViewModel.prototype.backToMailBoxClick = function ()
{ {
kn.setHash(RL.link().inbox()); kn.setHash(RL.link().inbox());
}; };
/** /**
* @constructor * @constructor
*/ */
@ -12383,7 +12383,7 @@ SettingsGeneral.prototype.selectLanguage = function ()
{ {
kn.showScreenPopup(PopupsLanguagesViewModel); kn.showScreenPopup(PopupsLanguagesViewModel);
}; };
/** /**
* @constructor * @constructor
*/ */
@ -12421,7 +12421,7 @@ SettingsContacts.prototype.onShow = function ()
{ {
this.showPassword(false); this.showPassword(false);
}; };
/** /**
* @constructor * @constructor
*/ */
@ -12502,7 +12502,7 @@ SettingsAccounts.prototype.deleteAccount = function (oAccountToRemove)
} }
} }
}; };
/** /**
* @constructor * @constructor
*/ */
@ -12590,7 +12590,7 @@ SettingsIdentity.prototype.onBuild = function ()
}, 50); }, 50);
}; };
/** /**
* @constructor * @constructor
*/ */
@ -12748,7 +12748,7 @@ SettingsIdentities.prototype.onBuild = function (oDom)
}); });
}, 50); }, 50);
}; };
/** /**
* @constructor * @constructor
*/ */
@ -12815,7 +12815,7 @@ function SettingsSocialScreen()
} }
Utils.addSettingsViewModel(SettingsSocialScreen, 'SettingsSocial', 'SETTINGS_LABELS/LABEL_SOCIAL_NAME', 'social'); Utils.addSettingsViewModel(SettingsSocialScreen, 'SettingsSocial', 'SETTINGS_LABELS/LABEL_SOCIAL_NAME', 'social');
/** /**
* @constructor * @constructor
*/ */
@ -12879,7 +12879,7 @@ SettingsChangePasswordScreen.prototype.onChangePasswordResponse = function (sRes
this.passwordUpdateError(true); this.passwordUpdateError(true);
} }
}; };
/** /**
* @constructor * @constructor
*/ */
@ -13074,7 +13074,7 @@ SettingsFolders.prototype.unSubscribeFolder = function (oFolder)
oFolder.subScribed(false); oFolder.subScribed(false);
}; };
/** /**
* @constructor * @constructor
*/ */
@ -13291,7 +13291,7 @@ SettingsThemes.prototype.initCustomThemeUploader = function ()
return false; return false;
}; };
/** /**
* @constructor * @constructor
*/ */
@ -13366,7 +13366,7 @@ AbstractData.prototype.populateDataOnStart = function()
this.contactsIsAllowed(!!RL.settingsGet('ContactsIsAllowed')); this.contactsIsAllowed(!!RL.settingsGet('ContactsIsAllowed'));
}; };
/** /**
* @constructor * @constructor
* @extends AbstractData * @extends AbstractData
@ -14399,7 +14399,7 @@ WebMailDataStorage.prototype.setMessageList = function (oData, bCached)
)); ));
} }
}; };
/** /**
* @constructor * @constructor
*/ */
@ -14673,7 +14673,7 @@ AbstractAjaxRemoteStorage.prototype.jsVersion = function (fCallback, sVersion)
'Version': sVersion 'Version': sVersion
}); });
}; };
/** /**
* @constructor * @constructor
* @extends AbstractAjaxRemoteStorage * @extends AbstractAjaxRemoteStorage
@ -15373,7 +15373,7 @@ WebMailAjaxRemoteStorage.prototype.socialUsers = function (fCallback)
this.defaultRequest(fCallback, 'SocialUsers'); this.defaultRequest(fCallback, 'SocialUsers');
}; };
/** /**
* @constructor * @constructor
*/ */
@ -15439,7 +15439,7 @@ AbstractCacheStorage.prototype.setEmailsPicsHashesData = function (oData)
{ {
this.oEmailsPicsHashes = oData; this.oEmailsPicsHashes = oData;
}; };
/** /**
* @constructor * @constructor
* @extends AbstractCacheStorage * @extends AbstractCacheStorage
@ -15757,7 +15757,7 @@ WebMailCacheStorage.prototype.storeMessageFlagsToCacheByFolderAndUid = function
this.setMessageFlagsToCache(sFolder, sUid, aFlags); this.setMessageFlagsToCache(sFolder, sUid, aFlags);
} }
}; };
/** /**
* @param {Array} aViewModels * @param {Array} aViewModels
* @constructor * @constructor
@ -15935,7 +15935,7 @@ AbstractSettings.prototype.routes = function ()
['', oRules] ['', oRules]
]; ];
}; };
/** /**
* @constructor * @constructor
* @extends KnoinAbstractScreen * @extends KnoinAbstractScreen
@ -15950,7 +15950,7 @@ _.extend(LoginScreen.prototype, KnoinAbstractScreen.prototype);
LoginScreen.prototype.onShow = function () LoginScreen.prototype.onShow = function ()
{ {
RL.setTitle(''); RL.setTitle('');
}; };
/** /**
* @constructor * @constructor
* @extends KnoinAbstractScreen * @extends KnoinAbstractScreen
@ -16131,7 +16131,7 @@ MailBoxScreen.prototype.routes = function ()
[/^([^\/]*)$/, {'normalize_': fNormS}] [/^([^\/]*)$/, {'normalize_': fNormS}]
]; ];
}; };
/** /**
* @constructor * @constructor
* @extends AbstractSettings * @extends AbstractSettings
@ -16159,7 +16159,7 @@ SettingsScreen.prototype.onShow = function ()
RL.setTitle(this.sSettingsTitle); RL.setTitle(this.sSettingsTitle);
}; };
/** /**
* @constructor * @constructor
* @extends KnoinAbstractBoot * @extends KnoinAbstractBoot
@ -16475,7 +16475,7 @@ AbstractApp.prototype.bootstart = function ()
ssm.ready(); ssm.ready();
}; };
/** /**
* @constructor * @constructor
* @extends AbstractApp * @extends AbstractApp
@ -17416,7 +17416,7 @@ RainLoopApp.prototype.bootstart = function ()
* @type {RainLoopApp} * @type {RainLoopApp}
*/ */
RL = new RainLoopApp(); RL = new RainLoopApp();
$html.addClass(Globals.bMobileDevice ? 'mobile' : 'no-mobile'); $html.addClass(Globals.bMobileDevice ? 'mobile' : 'no-mobile');
$window.keydown(Utils.killCtrlAandS).keyup(Utils.killCtrlAandS); $window.keydown(Utils.killCtrlAandS).keyup(Utils.killCtrlAandS);
@ -17463,9 +17463,9 @@ window['__RLBOOT'] = function (fCall) {
window['__RLBOOT'] = null; window['__RLBOOT'] = null;
}); });
}; };
if (window.SimplePace) { if (window.SimplePace) {
window.SimplePace.add(10); window.SimplePace.add(10);
} }
}(window, jQuery, ko, crossroads, hasher, moment, Jua, _, ifvisible)); }(window, jQuery, ko, crossroads, hasher, moment, Jua, _, ifvisible));

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long