Merge branch feature/reporttemplate of zentao/zentaopms (#10485)
This commit is contained in:
@@ -4,7 +4,28 @@
|
||||
*/
|
||||
function handleSaveDoc(doc)
|
||||
{
|
||||
/* See lib/zin/wg/docapp/js/v1.js */
|
||||
const docApp = getDocApp();
|
||||
|
||||
if(docApp.isSavingDoc) return;
|
||||
docApp.isSavingDoc = true;
|
||||
|
||||
const url = $.createLink('weekly', 'edit', `reportID=${doc.id}`);
|
||||
const docData = {
|
||||
rawContent : doc.content,
|
||||
status : doc.status || 'normal',
|
||||
contentType: doc.contentType,
|
||||
type : 'text',
|
||||
title : doc.title,
|
||||
keywords : doc.keywords,
|
||||
content : doc.html,
|
||||
uid : (doc.uid || `doc${doc.id}`),
|
||||
};
|
||||
if(doc.fromVersion) docData.fromVersion = doc.fromVersion;
|
||||
|
||||
$.ajaxSubmit({'url': url, 'data': docData, 'onComplete': function()
|
||||
{
|
||||
docApp.isSavingDoc = false;
|
||||
}});
|
||||
}
|
||||
|
||||
window._setDocViwerOptions = window.setDocAppOptions;
|
||||
|
||||
Reference in New Issue
Block a user