Browse Source

thumbnail click

master
Pascal Gloor 5 years ago
parent
commit
8b70ee4770
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      www/js/autodoc.js

+ 4
- 0
www/js/autodoc.js View File

$(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);


} }

Loading…
Cancel
Save