From 817a05378b7dbb9fba35c4fa0dbc28f87727f619 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Mon, 16 Dec 2013 16:25:16 +0400 Subject: [PATCH] added event to alignDataToRibbon(..) to enable section processing... Signed-off-by: Alex A. Naanou --- ui/data.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/ui/data.js b/ui/data.js index 34e44854..ce51effc 100755 --- a/ui/data.js +++ b/ui/data.js @@ -1011,10 +1011,6 @@ function imageUpdated(gid){ // // XXX not sure if we need the offset argument here... // a-la nextImage(n) / prevImage(n) -// XXX Q: is it cheaper to make a cached list that will contain only -// loaded gids? -// (i.e. filter it first and then get the needed gid rather -// iterating...) function makeNextFromListAction(get_closest, get_list, restrict_to_ribbon){ get_closest = get_closest == null ? getGIDBefore : get_closest get_list = get_list == null ? getRibbonGIDs : get_list @@ -1416,6 +1412,9 @@ function alignDataToRibbon(base_ribbon, data, start, end){ // start and/or end are null... var sections = splitData(data, start, end) + // XXX not sure if this is correct yet... + $('.viewer').trigger('aligningRibbonsSection', [base_ribbon, sections[1].slice()]) + // prepare to align... sections[1] = [ base_ribbon, sections[1] ]