$.getJSON( | $.getJSON( | ||||
conf.openapi + "/documents/" + docid, | conf.openapi + "/documents/" + docid, | ||||
function (doc) { | function (doc) { | ||||
if ( $('.slick-slide') ) { | |||||
if ( $('.slick-slide').length>0 ) { | |||||
$('.autodoc_document_carousel').slick('unslick'); | $('.autodoc_document_carousel').slick('unslick'); | ||||
} | } | ||||
$('.autodoc_document_carousel').children().remove(); | $('.autodoc_document_carousel').children().remove(); |