$(item).children('img').attr('data-lazy', | $(item).children('img').attr('data-lazy', | ||||
conf.openapi + "/pages/" + doc.pageId[i] + "/image?maxWidth=300"); | conf.openapi + "/pages/" + doc.pageId[i] + "/image?maxWidth=300"); | ||||
$(item).data('pageid', doc.pageId[i]); | |||||
$(item).click(function(e) { | |||||
console.log("open image", $(e.target).data('pageid')); | |||||
}); | |||||
$('.autodoc_document_carousel').append(item); | $('.autodoc_document_carousel').append(item); | ||||
} | } |