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)