mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-12-26 13:01:58 +00:00
minor tweaking...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
817a05378b
commit
4410852f50
@ -1412,8 +1412,14 @@ function alignDataToRibbon(base_ribbon, data, start, end){
|
|||||||
// start and/or end are null...
|
// start and/or end are null...
|
||||||
var sections = splitData(data, start, end)
|
var sections = splitData(data, start, end)
|
||||||
|
|
||||||
|
// prepare for and fire the event...
|
||||||
// XXX not sure if this is correct yet...
|
// XXX not sure if this is correct yet...
|
||||||
$('.viewer').trigger('aligningRibbonsSection', [base_ribbon, sections[1].slice()])
|
var gids = []
|
||||||
|
sections[1].forEach(function(ribbon){
|
||||||
|
gids = gids.concat(ribbon)
|
||||||
|
})
|
||||||
|
// XXX do we need sections[1] passed here?
|
||||||
|
$('.viewer').trigger('aligningRibbonsSection', [base_ribbon, gids, sections[1]])
|
||||||
|
|
||||||
// prepare to align...
|
// prepare to align...
|
||||||
sections[1] = [ base_ribbon, sections[1] ]
|
sections[1] = [ base_ribbon, sections[1] ]
|
||||||
|
|||||||
@ -377,10 +377,10 @@ function horizontalShiftMarkedImages(direction){
|
|||||||
// XXX
|
// XXX
|
||||||
}
|
}
|
||||||
function shiftMarkedImagesLeft(){
|
function shiftMarkedImagesLeft(){
|
||||||
return shiftMarkedImages('prev')
|
return horizontalShiftMarkedImages('prev')
|
||||||
}
|
}
|
||||||
function shiftMarkedImagesRight(){
|
function shiftMarkedImagesRight(){
|
||||||
return shiftMarkedImages('next')
|
return horizontalShiftMarkedImages('next')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -313,6 +313,9 @@ function setupTags(viewer){
|
|||||||
|
|
||||||
showStatusQ('Tags: Index: done ('+( t1 - t0 )+'ms).')
|
showStatusQ('Tags: Index: done ('+( t1 - t0 )+'ms).')
|
||||||
})
|
})
|
||||||
|
.on('aligningRibbonsSection', function(base, gids){
|
||||||
|
untagList(gids, 'unsorted')
|
||||||
|
})
|
||||||
|
|
||||||
}
|
}
|
||||||
SETUP_BINDINGS.push(setupTags)
|
SETUP_BINDINGS.push(setupTags)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user