updated and prioritized todo + minor fixes...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2012-08-11 02:59:11 +04:00
parent 954d018a5a
commit e1065af68e
2 changed files with 6 additions and 3 deletions

View File

@ -113,12 +113,12 @@ Priority work
[_] basic wrapper [_] basic wrapper
| hook-in os-specific API | hook-in os-specific API
[_] 23% Preview II (optional features) [_] 23% Preview II (optional features)
[_] flip ribbons relative to current -- reverse order
[_] slideshow... [_] slideshow...
[_] 50% serialization/deserialization [_] 50% serialization/deserialization
[X] JSON loader/unloader [X] JSON loader/unloader
[_] file reader/writer [_] file reader/writer
[_] actual file loading (Target-specific) [_] actual file loading (Target-specific)
[_] flip ribbons relative to current -- reverse order
[_] fade transition in single image mode... [_] fade transition in single image mode...
[_] display promoted/demoted images [_] display promoted/demoted images
| show images that were either promoted or demoted from the | show images that were either promoted or demoted from the

View File

@ -354,7 +354,10 @@ function buildJSON(get_order){
// XXX use this instead of loadImages(...) // XXX use this instead of loadImages(...)
// XXX might be good to add images in packs here, not one by one... // 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 ribbons = data.ribbons
var field = $('.field') var field = $('.field')
@ -369,7 +372,7 @@ function loadJSON(data){
for(var j in images){ for(var j in images){
var image = $(images[j]) var image = $(images[j])
// create image... // create image...
setImageOrder($('<div class="image"></div>') set_order($('<div class="image"></div>')
.css({ 'background-image': 'url('+image.attr('url')+')' }), j) .css({ 'background-image': 'url('+image.attr('url')+')' }), j)
.click(handleImageClick) .click(handleImageClick)
.appendTo(ribbon) .appendTo(ribbon)