Browse Source

test

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

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

.clone(); .clone();


$.getJSON( $.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, null,
function (data, textStatus, jqXHR) { function (data, textStatus, jqXHR) {
$.each(data, function (id, doc) { $.each(data, function (id, doc) {
var col = $(tmpl) var col = $(tmpl)
.find(".autodoc_template_home_col") .find(".autodoc_template_home_col")
.clone(); .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) $(col)
.find(".autodoc_template_home_owner") .find(".autodoc_template_home_owner")

Loading…
Cancel
Save