diff --git a/ui/data.js b/ui/data.js index 10e027a4..71d610fc 100755 --- a/ui/data.js +++ b/ui/data.js @@ -1042,6 +1042,10 @@ function loadSettings(){ } +// Crop view to only given gids +// +// Returns the original DATA object. +// // XXX make keep_ribbons option work... function cropDataToGIDs(gids, keep_ribbons){ var cur = DATA.current diff --git a/ui/index.html b/ui/index.html index e633684d..8b2938a4 100755 --- a/ui/index.html +++ b/ui/index.html @@ -150,13 +150,13 @@ $(function(){ centerRibbons() }) .on('swipeUp', function(){ - prevRibbon() - //shiftImageUp(null, DIRECTION) + //prevRibbon() + shiftImageDown(null, DIRECTION) centerRibbons() }) .on('swipeDown', function(){ - nextRibbon() - //shiftImageDown(null, DIRECTION) + //nextRibbon() + shiftImageUp(null, DIRECTION) centerRibbons() }) @@ -247,13 +247,11 @@ $(function(){ loading .done(function(){ showStatus('Loading settings...') - loadLocalStorageSettings() + DATA_ATTR + '_SETTINGS' in localStorage && loadLocalStorageSettings() // XXX this will reload everything... // XXX this might load the wrong marks (not sure)... - if('MARKED' in localStorage){ - loadLocalStorageMarks() - } + DATA_ATTR + '_MARKED' in localStorage && loadLocalStorageMarks() updateImages()