mirror of
https://github.com/ONLYOFFICE/document-server-integration.git
synced 2026-04-07 14:06:11 +08:00
format
This commit is contained in:
@ -219,14 +219,17 @@
|
|||||||
document.location.reload();
|
document.location.reload();
|
||||||
};
|
};
|
||||||
<% } %>
|
<% } %>
|
||||||
|
|
||||||
// add mentions for not anonymous users
|
// add mentions for not anonymous users
|
||||||
<% if (!string.IsNullOrEmpty(usersForMentions)) { %>
|
<% if (!string.IsNullOrEmpty(usersForMentions))
|
||||||
|
{ %>
|
||||||
config.events['onRequestUsers'] = function () {
|
config.events['onRequestUsers'] = function () {
|
||||||
docEditor.setUsers({ // set a list of users to mention in the comments
|
docEditor.setUsers({ // set a list of users to mention in the comments
|
||||||
"users": <%= usersForMentions %>
|
"users": <%= usersForMentions %>
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
<% } %>
|
<% } %>
|
||||||
|
|
||||||
// the user is mentioned in a comment
|
// the user is mentioned in a comment
|
||||||
config.events['onRequestSendNotify'] = function (event) {
|
config.events['onRequestSendNotify'] = function (event) {
|
||||||
event.data.actionLink = replaceActionLink(location.href, JSON.stringify(event.data.actionLink));
|
event.data.actionLink = replaceActionLink(location.href, JSON.stringify(event.data.actionLink));
|
||||||
|
|||||||
@ -208,7 +208,8 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (config.editorConfig.user.id) {
|
if (config.editorConfig.user.id) {
|
||||||
<% if (!string.IsNullOrEmpty(History) && !string.IsNullOrEmpty(HistoryData)) { %>
|
<% if (!string.IsNullOrEmpty(History) && !string.IsNullOrEmpty(HistoryData))
|
||||||
|
{ %>
|
||||||
config.events['onRequestHistory'] = function () { // the user is trying to show the document version history
|
config.events['onRequestHistory'] = function () { // the user is trying to show the document version history
|
||||||
docEditor.refreshHistory(<%= History %>); // show the document version history
|
docEditor.refreshHistory(<%= History %>); // show the document version history
|
||||||
};
|
};
|
||||||
@ -221,14 +222,16 @@
|
|||||||
document.location.reload();
|
document.location.reload();
|
||||||
};
|
};
|
||||||
<% } %>
|
<% } %>
|
||||||
|
|
||||||
// add mentions for not anonymous users
|
// add mentions for not anonymous users
|
||||||
<% if (!string.IsNullOrEmpty(UsersForMentions)) { %>
|
<% if (!string.IsNullOrEmpty(UsersForMentions))
|
||||||
|
{ %>
|
||||||
config.events['onRequestUsers'] = function () {
|
config.events['onRequestUsers'] = function () {
|
||||||
docEditor.setUsers({ // set a list of users to mention in the comments
|
docEditor.setUsers({ // set a list of users to mention in the comments
|
||||||
"users": <%= UsersForMentions %>
|
"users": <%= UsersForMentions %>
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
<% } %>
|
<% } %>
|
||||||
|
|
||||||
// the user is mentioned in a comment
|
// the user is mentioned in a comment
|
||||||
config.events['onRequestSendNotify'] = function (event) {
|
config.events['onRequestSendNotify'] = function (event) {
|
||||||
|
|||||||
@ -179,7 +179,7 @@
|
|||||||
var historyData = histArray[1];
|
var historyData = histArray[1];
|
||||||
var usersForMentions = [[${usersForMentions}]];
|
var usersForMentions = [[${usersForMentions}]];
|
||||||
|
|
||||||
if(config.editorConfig.user.id != 4){
|
if (config.editorConfig.user.id != 4) {
|
||||||
if (hist && historyData) {
|
if (hist && historyData) {
|
||||||
// the user is trying to show the document version history
|
// the user is trying to show the document version history
|
||||||
config.events['onRequestHistory'] = function () {
|
config.events['onRequestHistory'] = function () {
|
||||||
|
|||||||
Reference in New Issue
Block a user