fixed JSON indexing of images...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2012-08-09 06:29:29 +04:00
parent 70101c18c3
commit ae3785731d

View File

@ -290,11 +290,12 @@ function buildJSON(){
res.ribbons[res.ribbons.length] = ribbon
for(var j=0; j < images.length; j++){
var image = $(images[j])
ribbon[ribbon.length] = {
var id = image.attr('id')
ribbon[id] = {
// unwrap the url...
// XXX would be nice to make this a relative path...
url: /url\((.*)\)/.exec(image.css('background-image'))[1],
id: image.attr('id'),
id: id,
}
}
}