|
|
@@ -68,14 +68,14 @@ function document_load(page) { |
|
|
|
.clone(); |
|
|
|
|
|
|
|
$.getJSON( |
|
|
|
conf.openapi + "/documents?pageSize=" + conf.home.width + "&pageIndex=" + page + "&maxWidth=" + Math.floor(1000/conf.home.width), |
|
|
|
conf.openapi + "/documents?pageSize=" + conf.home.width + "&pageIndex=" + page, |
|
|
|
null, |
|
|
|
function (data, textStatus, jqXHR) { |
|
|
|
$.each(data, function (id, doc) { |
|
|
|
var col = $(tmpl) |
|
|
|
.find(".autodoc_template_home_col") |
|
|
|
.clone(); |
|
|
|
$(col).find(".autodoc_template_home_img").attr('src', conf.openapi + '/documents/' + doc.id + '/image'); |
|
|
|
$(col).find(".autodoc_template_home_img").attr('src', conf.openapi + '/documents/' + doc.id + '/image?maxWidth=' + Math.floor(conf.home.width/conf.home.width)); |
|
|
|
|
|
|
|
$(col) |
|
|
|
.find(".autodoc_template_home_owner") |