mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-11-01 20:00:10 +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...
|
// the needed data...
|
||||||
// XXX should we split this out?
|
// XXX should we split this out?
|
||||||
var IMAGES = {}
|
var IMAGES = {}
|
||||||
|
// True if images is modified and needs saving...
|
||||||
|
var IMAGES_DIRTY = false
|
||||||
|
|
||||||
var DATA_ATTR = 'DATA'
|
var DATA_ATTR = 'DATA'
|
||||||
|
|
||||||
@ -924,6 +926,7 @@ function setupDataBindings(viewer){
|
|||||||
DATA.current = getImageGID($(image))
|
DATA.current = getImageGID($(image))
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
// basic image manipulation...
|
// basic image manipulation...
|
||||||
// XXX after this we need to save the images...
|
// XXX after this we need to save the images...
|
||||||
.on('rotatingLeft rotatingRight', function(evt, image){
|
.on('rotatingLeft rotatingRight', function(evt, image){
|
||||||
@ -933,6 +936,7 @@ function setupDataBindings(viewer){
|
|||||||
var orientation = img.attr('orientation')
|
var orientation = img.attr('orientation')
|
||||||
|
|
||||||
IMAGES[gid].orientation = orientation
|
IMAGES[gid].orientation = orientation
|
||||||
|
IMAGES_DIRTY = true
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@ -198,6 +198,7 @@ var KEYBOARD_CONFIG = {
|
|||||||
S: {
|
S: {
|
||||||
ctrl: doc('Save current state',
|
ctrl: doc('Save current state',
|
||||||
function(){
|
function(){
|
||||||
|
event.preventDefault()
|
||||||
//saveLocalStorage()
|
//saveLocalStorage()
|
||||||
saveLocalStorageData()
|
saveLocalStorageData()
|
||||||
saveLocalStorageMarks()
|
saveLocalStorageMarks()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user