| @@ -243,10 +243,8 @@ function page_load_home() { | |||
| function page_load_document(args) { | |||
| var [docid] = args; | |||
| console.log(docid); | |||
| if ( !docid ) { | |||
| return false; | |||
| } | |||
| if ( !docid ) { return false; } | |||
| $('.autodoc_document_empty').addClass('d-none'); | |||
| $('.autodoc_document_body').removeClass('d-none'); | |||
| @@ -257,15 +255,17 @@ function page_load_document(args) { | |||
| function(doc) { | |||
| for(var i=0; i<doc.pageId.length; i++) { | |||
| $('.autodoc_document_carousel').append('<div><img /></div>'); | |||
| $('.autodoc_document_carousel').children().last().children().attr('src', | |||
| $('.autodoc_document_carousel').children().last().children().attr('data-lazy', | |||
| conf.openapi + "/pages/" + doc.pageId[i] + "/image?maxWidth=100"); | |||
| } | |||
| $('.autodoc_document_carousel').slick({ | |||
| lazyLoad: 'ondemand', | |||
| slidesToShow: 4, | |||
| slidesToScroll: 4 | |||
| }); | |||
| } | |||
| ); | |||
| $('.autodoc_document_carousel').slick({ | |||
| slidesToShow: 4, | |||
| slidesToScroll: 4 | |||
| }); | |||
| } | |||
| function page_load_upload() { | |||