mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-12-14 23:41:39 +00:00
updated and prioritized todo + minor fixes...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
954d018a5a
commit
e1065af68e
@ -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
|
||||
|
||||
@ -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($('<div class="image"></div>')
|
||||
set_order($('<div class="image"></div>')
|
||||
.css({ 'background-image': 'url('+image.attr('url')+')' }), j)
|
||||
.click(handleImageClick)
|
||||
.appendTo(ribbon)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user