From 71af44e6fce8c8fde1c041aea2c8a210a2d6f746 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Thu, 16 May 2013 22:34:26 +0400 Subject: [PATCH] minor edits, still some bugs... Signed-off-by: Alex A. Naanou --- ui/data.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/data.js b/ui/data.js index 5c6d230d..90abff03 100755 --- a/ui/data.js +++ b/ui/data.js @@ -329,7 +329,7 @@ function loadImages(ref_gid, count, ribbon){ // check if we have a common section at all / full reload... if(head == 0 && tail == 0){ if(gids.indexOf(old_gids[0]) == -1){ - console.log('>>> (ribbon:', ribbon_i, ') FULL RELOAD --', gids.length) + window.DEBUG && console.log('>>> (ribbon:', ribbon_i, ') FULL RELOAD --', gids.length) // XXX do we need to think about alining here??? extendRibbon(0, gids.length - old_gids.length, ribbon) return ribbon @@ -341,13 +341,13 @@ function loadImages(ref_gid, count, ribbon){ // do nothing... // ...the requested section is the same as the one already loaded... } else { - console.log('>>> (ribbon:', ribbon_i, ') NOTHING TO DO.') + window.DEBUG && console.log('>>> (ribbon:', ribbon_i, ') NOTHING TO DO.') return images } // do a partial reload... } else { - console.log('>>> (ribbon:', ribbon_i, ')', head, '+-('+ (old_gids.length) +')-+', tail) + window.DEBUG && console.log('>>> (ribbon:', ribbon_i, ')', head, '+-('+ (old_gids.length) +')-+', tail) // NOTE: we do not need to do anything about alignment as // extendRibbon will get the correct head and tail so as to // align everything by itself...