minor tweaking...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2013-12-17 04:37:20 +04:00
parent 817a05378b
commit 4410852f50
3 changed files with 12 additions and 3 deletions

View File

@ -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] ]

View File

@ -377,10 +377,10 @@ function horizontalShiftMarkedImages(direction){
// XXX
}
function shiftMarkedImagesLeft(){
return shiftMarkedImages('prev')
return horizontalShiftMarkedImages('prev')
}
function shiftMarkedImagesRight(){
return shiftMarkedImages('next')
return horizontalShiftMarkedImages('next')
}

View File

@ -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)