mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 18:30:09 +00:00
several minor tweeks...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
891e8ee744
commit
eebd7dac37
@ -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
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
@ -198,6 +198,7 @@ var KEYBOARD_CONFIG = {
|
||||
S: {
|
||||
ctrl: doc('Save current state',
|
||||
function(){
|
||||
event.preventDefault()
|
||||
//saveLocalStorage()
|
||||
saveLocalStorageData()
|
||||
saveLocalStorageMarks()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user