mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-30 19:00:09 +00:00
fixed JSON indexing of images...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
70101c18c3
commit
ae3785731d
@ -290,11 +290,12 @@ function buildJSON(){
|
|||||||
res.ribbons[res.ribbons.length] = ribbon
|
res.ribbons[res.ribbons.length] = ribbon
|
||||||
for(var j=0; j < images.length; j++){
|
for(var j=0; j < images.length; j++){
|
||||||
var image = $(images[j])
|
var image = $(images[j])
|
||||||
ribbon[ribbon.length] = {
|
var id = image.attr('id')
|
||||||
|
ribbon[id] = {
|
||||||
// unwrap the url...
|
// unwrap the url...
|
||||||
// XXX would be nice to make this a relative path...
|
// XXX would be nice to make this a relative path...
|
||||||
url: /url\((.*)\)/.exec(image.css('background-image'))[1],
|
url: /url\((.*)\)/.exec(image.css('background-image'))[1],
|
||||||
id: image.attr('id'),
|
id: id,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user