Browse Source

fixed

master
Pascal Gloor 5 years ago
parent
commit
bffc25c946
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      www/js/autodoc.js

+ 3
- 3
www/js/autodoc.js View File



$(item).data('pageid', doc.pageId[i]); $(item).data('pageid', doc.pageId[i]);
$(item).click(function(e) { $(item).click(function(e) {
var pageid = $(e.target).parent().data('pageid');
$('.autodoc_document_image').attr('src', $('.autodoc_document_image').attr('src',
conf.openapi + "/pages/" + $(e.target).parent().data('pageid') + "/image"
conf.openapi + "/pages/" + pageid + "/image"
); );
$('.autodoc_document_image').data('pageid', doc.pageId[i]);
console.log("new pageid", $('.autodoc_document_image').data('pageid'));
$('.autodoc_document_image').data('pageid', pageid);
}); });
$('.autodoc_document_carousel').append(item); $('.autodoc_document_carousel').append(item);



Loading…
Cancel
Save