mirror of
https://github.com/ONLYOFFICE/document-server-integration.git
synced 2026-04-07 14:06:11 +08:00
nodejs: start filling
This commit is contained in:
@ -1,6 +1,7 @@
|
|||||||
# Change Log
|
# Change Log
|
||||||
|
|
||||||
- nodejs: user role
|
- nodejs: user role
|
||||||
|
- nodejs: start filling
|
||||||
|
|
||||||
## 1.12.0
|
## 1.12.0
|
||||||
- nodejs: refresh config
|
- nodejs: refresh config
|
||||||
|
|||||||
@ -65,6 +65,7 @@ const descrUser1 = [
|
|||||||
'Can submit forms',
|
'Can submit forms',
|
||||||
'Has an avatar',
|
'Has an avatar',
|
||||||
'Has no roles',
|
'Has no roles',
|
||||||
|
'Can start filling',
|
||||||
];
|
];
|
||||||
|
|
||||||
const descrUser2 = [
|
const descrUser2 = [
|
||||||
@ -77,6 +78,7 @@ const descrUser2 = [
|
|||||||
'Can submit forms',
|
'Can submit forms',
|
||||||
'Has an avatar',
|
'Has an avatar',
|
||||||
'Has role "Anyone"',
|
'Has role "Anyone"',
|
||||||
|
'Can start filling',
|
||||||
];
|
];
|
||||||
|
|
||||||
const descrUser3 = [
|
const descrUser3 = [
|
||||||
@ -93,6 +95,7 @@ const descrUser3 = [
|
|||||||
'Can’t close history',
|
'Can’t close history',
|
||||||
'Can’t restore the file version',
|
'Can’t restore the file version',
|
||||||
'Has role "role"',
|
'Has role "role"',
|
||||||
|
'Can start filling',
|
||||||
];
|
];
|
||||||
|
|
||||||
const descrUser0 = [
|
const descrUser0 = [
|
||||||
@ -111,6 +114,7 @@ const descrUser0 = [
|
|||||||
'Can’t submit forms',
|
'Can’t submit forms',
|
||||||
'Can’t refresh outdated file',
|
'Can’t refresh outdated file',
|
||||||
'Has empty role',
|
'Has empty role',
|
||||||
|
'Can’t start filling',
|
||||||
];
|
];
|
||||||
|
|
||||||
const users = [
|
const users = [
|
||||||
|
|||||||
@ -365,6 +365,18 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
var onRequestStartFilling = function(event) {
|
||||||
|
var data = event.data;
|
||||||
|
var submit = confirm("Start filling?\n" + JSON.stringify(data));
|
||||||
|
if (submit) {
|
||||||
|
docEditor.startFilling(true);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
var onStartFilling = function(event) {
|
||||||
|
innerAlert("The form is ready to fill out.");
|
||||||
|
};
|
||||||
|
|
||||||
var onDocumentReady = function(){
|
var onDocumentReady = function(){
|
||||||
fixSize();
|
fixSize();
|
||||||
};
|
};
|
||||||
@ -398,6 +410,8 @@
|
|||||||
config.events.onRequestReferenceData = onRequestReferenceData;
|
config.events.onRequestReferenceData = onRequestReferenceData;
|
||||||
config.events.onRequestReferenceSource = onRequestReferenceSource;
|
config.events.onRequestReferenceSource = onRequestReferenceSource;
|
||||||
config.events.onRequestRefreshFile = onRequestRefreshFile;
|
config.events.onRequestRefreshFile = onRequestRefreshFile;
|
||||||
|
config.events.onRequestStartFilling = onRequestStartFilling;
|
||||||
|
config.events.onStartFilling = onStartFilling;
|
||||||
if (<%- JSON.stringify(editor.userid) %> != "uid-3") {
|
if (<%- JSON.stringify(editor.userid) %> != "uid-3") {
|
||||||
config.events.onRequestHistoryClose = onRequestHistoryClose;
|
config.events.onRequestHistoryClose = onRequestHistoryClose;
|
||||||
config.events.onRequestRestore = onRequestRestore;
|
config.events.onRequestRestore = onRequestRestore;
|
||||||
|
|||||||
Reference in New Issue
Block a user