Browse Source

id not class

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

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

// make primary button // make primary button
$('.autodoc_document_btn_primary').click(function(e) { $('.autodoc_document_btn_primary').click(function(e) {
$(e.target).addClass('disabled'); $(e.target).addClass('disabled');
var docid = $('.autodoc_tab_document').data('docid');
var docid = $('#autodoc_tab_document').data('docid');
var pageid = $('.autodoc_document_image').data('pageid'); var pageid = $('.autodoc_document_image').data('pageid');


$.ajax({ $.ajax({


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


$('.autodoc_tab_document').data('docid', docid);
$('#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');

Loading…
Cancel
Save