mirror of
https://github.com/ONLYOFFICE/document-server-integration.git
synced 2026-04-07 14:06:11 +08:00
Merge remote-tracking branch 'remotes/origin/feature/setUsers' into release/v9.0.0
This commit is contained in:
@ -1,5 +1,6 @@
|
|||||||
# Change Log
|
# Change Log
|
||||||
|
|
||||||
|
- nodejs: set users by parts
|
||||||
- ur skin language
|
- ur skin language
|
||||||
- nodejs: preload frame moved from uploading popap
|
- nodejs: preload frame moved from uploading popap
|
||||||
- change preload.html address
|
- change preload.html address
|
||||||
|
|||||||
@ -225,10 +225,27 @@
|
|||||||
users = <%- JSON.stringify(usersForMentions) %>;
|
users = <%- JSON.stringify(usersForMentions) %>;
|
||||||
}
|
}
|
||||||
|
|
||||||
docEditor.setUsers({
|
if ((c === "protect" || c === "mention") && users && event.data.count) {
|
||||||
|
let from = event.data.from;
|
||||||
|
let count = event.data.count;
|
||||||
|
let search = event.data.search;
|
||||||
|
if (from != 0) users = [];
|
||||||
|
var resultCount = 234;
|
||||||
|
for (var i = Math.max(users.length, from); i < Math.min(from + count, resultCount); i++){
|
||||||
|
users.push({
|
||||||
|
email: "test@test.test" + (i + 1),
|
||||||
|
id: "id" + (i + 1),
|
||||||
|
name: "test_" + search + (i + 1)
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
var result = {
|
||||||
"c": c,
|
"c": c,
|
||||||
"users": users,
|
"users": users,
|
||||||
});
|
};
|
||||||
|
if (resultCount) result.total = resultCount;
|
||||||
|
docEditor.setUsers(result);
|
||||||
};
|
};
|
||||||
|
|
||||||
var onRequestSendNotify = function(event) { // the user is mentioned in a comment
|
var onRequestSendNotify = function(event) { // the user is mentioned in a comment
|
||||||
|
|||||||
Reference in New Issue
Block a user