several minor tweeks...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2013-05-23 17:28:00 +04:00
parent 891e8ee744
commit eebd7dac37
2 changed files with 5 additions and 0 deletions

View File

@ -52,6 +52,8 @@ var DATA = {
// the needed data...
// XXX should we split this out?
var IMAGES = {}
// True if images is modified and needs saving...
var IMAGES_DIRTY = false
var DATA_ATTR = 'DATA'
@ -924,6 +926,7 @@ function setupDataBindings(viewer){
DATA.current = getImageGID($(image))
})
// basic image manipulation...
// XXX after this we need to save the images...
.on('rotatingLeft rotatingRight', function(evt, image){
@ -933,6 +936,7 @@ function setupDataBindings(viewer){
var orientation = img.attr('orientation')
IMAGES[gid].orientation = orientation
IMAGES_DIRTY = true
})
})

View File

@ -198,6 +198,7 @@ var KEYBOARD_CONFIG = {
S: {
ctrl: doc('Save current state',
function(){
event.preventDefault()
//saveLocalStorage()
saveLocalStorageData()
saveLocalStorageMarks()