Browse Source

bug

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

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



if (!docid) { return false; } if (!docid) { return false; }


$('.autodoc_tab_document').data('docid', docid);

$('.autodoc_document_empty').addClass('d-none'); $('.autodoc_document_empty').addClass('d-none');
$('.autodoc_document_body').removeClass('d-none'); $('.autodoc_document_body').removeClass('d-none');


$.getJSON( $.getJSON(
conf.openapi + "/documents/" + docid, conf.openapi + "/documents/" + docid,
function (doc) { function (doc) {
$('.autodoc_document_name.span').html(doc.name);
$('.autodoc_document_name.input').val(doc.name);
$('span.autodoc_document_name').html(doc.name);
$('input.autodoc_document_name').val(doc.name);
$('.autodoc_document_created').html(doc.created); $('.autodoc_document_created').html(doc.created);
$('.autodoc_document_languages').html(doc.languages.join(',')); $('.autodoc_document_languages').html(doc.languages.join(','));

Loading…
Cancel
Save