From bea0596b9c37fdb9e0eb7cc7456f5f9885f7ec5d Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Thu, 30 Aug 2012 18:44:07 +0400 Subject: [PATCH] nimor edit... Signed-off-by: Alex A. Naanou --- ui/TODO.otl | 9 +++++---- ui/gallery-prototype.js | 3 ++- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/ui/TODO.otl b/ui/TODO.otl index 6579ed78..ca715482 100755 --- a/ui/TODO.otl +++ b/ui/TODO.otl @@ -1,15 +1,16 @@ Priority work [_] 68% Preview II - [_] 47% save state + [_] 53% save state [X] minimal: Local Storage (manual) | works across all targets (CEF, PhoneGap, browser) [_] local JSON (file) [_] CouchDB - [_] 33% autosave + [_] 75% autosave [X] on edit - [_] on navigate + [X] on navigate | only save position to save time... - [_] on timer + [X] on timer + [_] on unload [X] manual incremental save [_] manual named save [X] versions/history diff --git a/ui/gallery-prototype.js b/ui/gallery-prototype.js index 4d30e423..f36f4f63 100755 --- a/ui/gallery-prototype.js +++ b/ui/gallery-prototype.js @@ -1041,11 +1041,12 @@ function setupEvents(){ }) */ // save things if updated within a minute... + // XXX this gets very slow when saving a large data dump... setInterval(function(){ if(updated){ ImageGrid.saveState() updated = false - }}, 60000) + }}, 120000) // autosave every ten minutes... // XXX do we really need this? //setInterval(ImageGrid.saveState, 600000)