nimor edit...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2012-08-30 18:44:07 +04:00
parent e1f328b918
commit bea0596b9c
2 changed files with 7 additions and 5 deletions

View File

@ -1,15 +1,16 @@
Priority work Priority work
[_] 68% Preview II [_] 68% Preview II
[_] 47% save state [_] 53% save state
[X] minimal: Local Storage (manual) [X] minimal: Local Storage (manual)
| works across all targets (CEF, PhoneGap, browser) | works across all targets (CEF, PhoneGap, browser)
[_] local JSON (file) [_] local JSON (file)
[_] CouchDB [_] CouchDB
[_] 33% autosave [_] 75% autosave
[X] on edit [X] on edit
[_] on navigate [X] on navigate
| only save position to save time... | only save position to save time...
[_] on timer [X] on timer
[_] on unload
[X] manual incremental save [X] manual incremental save
[_] manual named save [_] manual named save
[X] versions/history [X] versions/history

View File

@ -1041,11 +1041,12 @@ function setupEvents(){
}) })
*/ */
// save things if updated within a minute... // save things if updated within a minute...
// XXX this gets very slow when saving a large data dump...
setInterval(function(){ setInterval(function(){
if(updated){ if(updated){
ImageGrid.saveState() ImageGrid.saveState()
updated = false updated = false
}}, 60000) }}, 120000)
// autosave every ten minutes... // autosave every ten minutes...
// XXX do we really need this? // XXX do we really need this?
//setInterval(ImageGrid.saveState, 600000) //setInterval(ImageGrid.saveState, 600000)