From 3c9e7106cf6fdefdd83720cfcc7d0d5eca973194 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Wed, 29 Aug 2012 17:07:26 +0400 Subject: [PATCH] updated todo... Signed-off-by: Alex A. Naanou --- ui/TODO.otl | 15 ++++++++++----- ui/gallery-prototype.js | 3 +++ 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/ui/TODO.otl b/ui/TODO.otl index 44c7f514..f1cd0b7a 100755 --- a/ui/TODO.otl +++ b/ui/TODO.otl @@ -1,12 +1,17 @@ Priority work - [_] 55% Preview II - [_] 0% save state - [_] minimal: Local Storage + [_] 61% Preview II + [_] 20% save state + [X] minimal: Local Storage (manual) | works across all targets (CEF, PhoneGap, browser) [_] local JSON (file) [_] CouchDB - [_] 0% load state - [_] auto: last state + [_] 0% autosave + [_] on edit + [_] on timer + [_] versions/history + [_] 33% load state + [X] load mechanics + [_] auto-load last state on startup [_] manual [_] 50% load folder [X] drag'n'drop diff --git a/ui/gallery-prototype.js b/ui/gallery-prototype.js index aa816197..36a97749 100755 --- a/ui/gallery-prototype.js +++ b/ui/gallery-prototype.js @@ -115,6 +115,9 @@ ImageGrid.GROUP('API', }, function load(){ loadJSON($.jStorage.get(ImageGrid.option.KEY_NAME_STATE, {})) + // NOTE: we need to load the config ACTER the state as to be + // able to set correct state-related data like current + // image ID... ImageGrid.set($.jStorage.get(ImageGrid.option.KEY_NAME_CONFIG, {})) }), ImageGrid.ACTION({