mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-11-03 12:50:09 +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...
|
||||
var sections = splitData(data, start, end)
|
||||
|
||||
// prepare for and fire the event...
|
||||
// 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...
|
||||
sections[1] = [ base_ribbon, sections[1] ]
|
||||
|
||||
@ -377,10 +377,10 @@ function horizontalShiftMarkedImages(direction){
|
||||
// XXX
|
||||
}
|
||||
function shiftMarkedImagesLeft(){
|
||||
return shiftMarkedImages('prev')
|
||||
return horizontalShiftMarkedImages('prev')
|
||||
}
|
||||
function shiftMarkedImagesRight(){
|
||||
return shiftMarkedImages('next')
|
||||
return horizontalShiftMarkedImages('next')
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -313,6 +313,9 @@ function setupTags(viewer){
|
||||
|
||||
showStatusQ('Tags: Index: done ('+( t1 - t0 )+'ms).')
|
||||
})
|
||||
.on('aligningRibbonsSection', function(base, gids){
|
||||
untagList(gids, 'unsorted')
|
||||
})
|
||||
|
||||
}
|
||||
SETUP_BINDINGS.push(setupTags)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user