From e1065af68e7c2f795b02a0e73990af6ca9b7077c Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sat, 11 Aug 2012 02:59:11 +0400 Subject: [PATCH] updated and prioritized todo + minor fixes... Signed-off-by: Alex A. Naanou --- ui/TODO.otl | 2 +- ui/gallery-prototype.js | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ui/TODO.otl b/ui/TODO.otl index 2a643094..f513ea11 100755 --- a/ui/TODO.otl +++ b/ui/TODO.otl @@ -113,12 +113,12 @@ Priority work [_] basic wrapper | hook-in os-specific API [_] 23% Preview II (optional features) - [_] flip ribbons relative to current -- reverse order [_] slideshow... [_] 50% serialization/deserialization [X] JSON loader/unloader [_] file reader/writer [_] actual file loading (Target-specific) + [_] flip ribbons relative to current -- reverse order [_] fade transition in single image mode... [_] display promoted/demoted images | show images that were either promoted or demoted from the diff --git a/ui/gallery-prototype.js b/ui/gallery-prototype.js index b3626143..f1c428ff 100755 --- a/ui/gallery-prototype.js +++ b/ui/gallery-prototype.js @@ -354,7 +354,10 @@ function buildJSON(get_order){ // XXX use this instead of loadImages(...) // XXX might be good to add images in packs here, not one by one... -function loadJSON(data){ +function loadJSON(data, set_order){ + if(set_order == null){ + set_order = setImageOrder + } var ribbons = data.ribbons var field = $('.field') @@ -369,7 +372,7 @@ function loadJSON(data){ for(var j in images){ var image = $(images[j]) // create image... - setImageOrder($('
') + set_order($('
') .css({ 'background-image': 'url('+image.attr('url')+')' }), j) .click(handleImageClick) .appendTo(ribbon)