From c92b685ba87bb10fe72163297e5e7682e657e4d1 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Fri, 24 May 2013 19:28:05 +0400 Subject: [PATCH] minor bugfix... Signed-off-by: Alex A. Naanou --- ui/data.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ui/data.js b/ui/data.js index b9f5c2cc..69fbc930 100755 --- a/ui/data.js +++ b/ui/data.js @@ -429,11 +429,11 @@ function loadImages(ref_gid, count, ribbon){ }) $('.viewer').trigger('reloadedRibbon', [ribbon]) - // do nothing... // ...the requested section is the same as the one already loaded... } else { window.DEBUG && console.log('>>> (ribbon:', ribbon_i, ') NOTHING TO DO.') + return images } // do a partial reload... @@ -457,6 +457,7 @@ function loadImages(ref_gid, count, ribbon){ } // XXX is this the right place for this? + // XXX this might be too global, do only the images loaded... correctImageProportionsForRotation(images) return images } @@ -718,6 +719,8 @@ function loadFile(data_path, image_path, callback){ json = convertDataGen1(json) DATA = json.data IMAGES = json.images + // XXX load marked data... + MARKED = [] loadData() // version 2.0