Fixed: Folder expand/collapse not remembered (#934)

This commit is contained in:
RainLoop Team 2016-01-22 19:51:22 +03:00
parent c926642bff
commit 568a1a1cda
8 changed files with 12 additions and 12 deletions

View file

@ -25,7 +25,7 @@ import PgpStore from 'Stores/User/Pgp';
import MessageStore from 'Stores/User/Message';
import ContactStore from 'Stores/User/Contact';
import Local from 'Storage/Client.jsx';
import Local from 'Storage/Client';
import Settings from 'Storage/Settings';
import Remote from 'Remote/User/Ajax';

View file

@ -12,7 +12,7 @@ class CookieDriver
*/
set(key, data) {
let
let
result = false,
storageResult = null
;
@ -46,10 +46,10 @@ class CookieDriver
get(sKey) {
let result = null;
try
{
const
const
storageValue = $.cookie(CLIENT_SIDE_STORAGE_INDEX_NAME),
storageResult = null === storageValue ? null : JSON.parse(storageValue)
;

View file

@ -15,7 +15,7 @@
FolderStore = require('Stores/User/Folder'),
Settings = require('Storage/Settings'),
Local = require('Storage/Client.jsx'),
Local = require('Storage/Client'),
FolderModel = require('Model/Folder'),

View file

@ -13,7 +13,7 @@
Cache = require('Common/Cache'),
Settings = require('Storage/Settings'),
Local = require('Storage/Client.jsx'),
Local = require('Storage/Client'),
FolderStore = require('Stores/User/Folder'),

View file

@ -1,12 +1,12 @@
import {_} from 'common';
import {Cookie} from 'Common/ClientStorageDriver/Cookie';
import {LocalStorage} from 'Common/ClientStorageDriver/LocalStorage';
import {CookieDriver} from 'Common/ClientStorageDriver/Cookie';
import {LocalStorageDriver} from 'Common/ClientStorageDriver/LocalStorage';
class ClientStorage
{
constructor() {
const SupportedStorageDriver = _.find([LocalStorage, Cookie],
const SupportedStorageDriver = _.find([LocalStorageDriver, CookieDriver],
(StorageDriver) => StorageDriver && StorageDriver.supported());
this.driver = SupportedStorageDriver ? new SupportedStorageDriver() : null;
}

View file

@ -19,7 +19,7 @@
LanguageStore = require('Stores/Language'),
AppStore = require('Stores/User/App'),
Local = require('Storage/Client.jsx'),
Local = require('Storage/Client'),
Settings = require('Storage/Settings'),
Remote = require('Remote/User/Ajax'),

View file

@ -28,7 +28,7 @@
FolderStore = require('Stores/User/Folder'),
MessageStore = require('Stores/User/Message'),
Local = require('Storage/Client.jsx'),
Local = require('Storage/Client'),
Settings = require('Storage/Settings'),
Remote = require('Remote/User/Ajax'),

View file

@ -2,7 +2,7 @@
"name": "RainLoop",
"title": "RainLoop Webmail",
"version": "1.9.4",
"release": "394",
"release": "395",
"description": "Simple, modern & fast web-based email client",
"homepage": "http://rainloop.net",
"main": "gulpfile.js",