From ba38f67c6ce39a8e07b8bb9556a6bba544bad602 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Fri, 21 Jun 2013 22:57:16 +0400 Subject: [PATCH] more tweaking... Signed-off-by: Alex A. Naanou --- ui/index.html | 5 +++-- ui/ui.js | 4 ++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ui/index.html b/ui/index.html index 8b2938a4..2768cb3e 100755 --- a/ui/index.html +++ b/ui/index.html @@ -250,8 +250,9 @@ $(function(){ DATA_ATTR + '_SETTINGS' in localStorage && loadLocalStorageSettings() // XXX this will reload everything... - // XXX this might load the wrong marks (not sure)... - DATA_ATTR + '_MARKED' in localStorage && loadLocalStorageMarks() + (MARKED.length == 0 + && DATA_ATTR + '_MARKED' in localStorage + && loadLocalStorageMarks()) updateImages() diff --git a/ui/ui.js b/ui/ui.js index 033ff7b4..2f59d879 100755 --- a/ui/ui.js +++ b/ui/ui.js @@ -684,6 +684,10 @@ function loadDirectory(dfl){ getter('Path to open', dfl) .done(function(path){ + // reset the modes... + toggleSingleImageMode('off') + toggleSingleRibbonMode('off') + path = path.trim() statusNotify(loadDir(path)) })