| type: "PATCH", | type: "PATCH", | ||||
| url: conf.openapi + "/documents/" + docid + "?primarypage=" + pageid, | url: conf.openapi + "/documents/" + docid + "?primarypage=" + pageid, | ||||
| success: function () { | success: function () { | ||||
| $('autodoc_document_btn_primary').removeClass('disabled'); | |||||
| $('.autodoc_document_btn_primary').removeClass('disabled'); | |||||
| } | } | ||||
| }); | }); | ||||
| if (!docid) { return false; } | if (!docid) { return false; } | ||||
| $('#autodoc_tab_document').data('docid', docid); | $('#autodoc_tab_document').data('docid', docid); | ||||
| console.log($('#autodoc_tab_document').data()); | |||||
| $('.autodoc_document_empty').addClass('d-none'); | $('.autodoc_document_empty').addClass('d-none'); | ||||
| $('.autodoc_document_body').removeClass('d-none'); | $('.autodoc_document_body').removeClass('d-none'); |