Browse Source

infinite loop :P

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

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

$.getJSON( $.getJSON(
conf.openapi + "/documents/" + docid, conf.openapi + "/documents/" + docid,
function(doc) { function(doc) {
for(var i=0; doc.pageId.length; i++) {
for(var i=0; i<doc.pageId.length; i++) {
var item = '<div><img /></div>'; var item = '<div><img /></div>';
// $(item).find('img').attr('src', conf.openpi + "/pages/" + doc.pageId[i] + "/images?maxWidth=100");
$(item).find('img').attr('src', conf.openpi + "/pages/" + doc.pageId[i] + "/images?maxWidth=100");
$('.autodoc_document_carousel').append(item); $('.autodoc_document_carousel').append(item);
} }
} }

Loading…
Cancel
Save