mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-02-10 18:05:32 +08:00
Fix Bug 78359
This commit is contained in:
@ -202,7 +202,7 @@ define([
|
||||
if (!opts.data || opts.data.error) {
|
||||
var config = {
|
||||
title: this.notcriticalErrorTitle,
|
||||
msg: opts.data && opts.data.error ? opts.data.error : this.txtErrorLoadHistory,
|
||||
msg: opts.data && opts.data.error ? Common.Utils.String.htmlEncode(opts.data.error) : this.txtErrorLoadHistory,
|
||||
iconCls: 'warn',
|
||||
buttons: ['ok']
|
||||
};
|
||||
|
||||
@ -613,7 +613,7 @@ define([
|
||||
this.api.asc_coAuthoringDisconnect();
|
||||
Common.NotificationCenter.trigger('collaboration:sharingdeny');
|
||||
Common.NotificationCenter.trigger('api:disconnect');
|
||||
!old_rights && Common.UI.TooltipManager.showTip({ step: 'changeRights', text: _.isEmpty(data.message) ? this.warnProcessRightsChange : data.message,
|
||||
!old_rights && Common.UI.TooltipManager.showTip({ step: 'changeRights', text: _.isEmpty(data.message) ? this.warnProcessRightsChange : Common.Utils.String.htmlEncode(data.message),
|
||||
target: '#toolbar', maxwidth: 600, showButton: false, automove: true, noHighlight: true, noArrow: true, multiple: true,
|
||||
callback: function() {
|
||||
me._state.lostEditingRights = false;
|
||||
@ -705,7 +705,7 @@ define([
|
||||
}
|
||||
Common.UI.alert({
|
||||
title: this.notcriticalErrorTitle,
|
||||
msg: (opts.data.error) ? opts.data.error : this.txtErrorLoadHistory,
|
||||
msg: (opts.data.error) ? Common.Utils.String.htmlEncode(opts.data.error) : this.txtErrorLoadHistory,
|
||||
iconCls: 'warn',
|
||||
buttons: ['ok'],
|
||||
callback: _.bind(function(btn){
|
||||
|
||||
@ -634,7 +634,7 @@ define([
|
||||
width: 500,
|
||||
closable: false,
|
||||
title: this.notcriticalErrorTitle,
|
||||
msg: opts.data.error,
|
||||
msg: Common.Utils.String.htmlEncode(opts.data.error),
|
||||
iconCls: 'warn',
|
||||
buttons: _.isEmpty(opts.data.createEmailAccountUrl) ? ['ok'] : [{value: 'custom', caption: this.textGoToMail}, 'cancel'],
|
||||
primary: _.isEmpty(opts.data.createEmailAccountUrl) ? ['ok'] : 'custom',
|
||||
|
||||
@ -542,7 +542,7 @@ define([
|
||||
this.api.asc_coAuthoringDisconnect();
|
||||
Common.NotificationCenter.trigger('collaboration:sharingdeny');
|
||||
Common.NotificationCenter.trigger('api:disconnect');
|
||||
!old_rights && Common.UI.TooltipManager.showTip({ step: 'changeRights', text: _.isEmpty(data.message) ? this.warnProcessRightsChange : data.message,
|
||||
!old_rights && Common.UI.TooltipManager.showTip({ step: 'changeRights', text: _.isEmpty(data.message) ? this.warnProcessRightsChange : Common.Utils.String.htmlEncode(data.message),
|
||||
target: '#toolbar', maxwidth: 600, showButton: false, automove: true, noHighlight: true, noArrow: true, multiple: true,
|
||||
callback: function() {
|
||||
me._state.lostEditingRights = false;
|
||||
|
||||
@ -558,7 +558,7 @@ define([
|
||||
this.api.asc_coAuthoringDisconnect();
|
||||
Common.NotificationCenter.trigger('collaboration:sharingdeny');
|
||||
Common.NotificationCenter.trigger('api:disconnect');
|
||||
!old_rights && Common.UI.TooltipManager.showTip({ step: 'changeRights', text: _.isEmpty(data.message) ? this.warnProcessRightsChange : data.message,
|
||||
!old_rights && Common.UI.TooltipManager.showTip({ step: 'changeRights', text: _.isEmpty(data.message) ? this.warnProcessRightsChange : Common.Utils.String.htmlEncode(data.message),
|
||||
target: '#toolbar', maxwidth: 600, showButton: false, automove: true, noHighlight: true, noArrow: true, multiple: true,
|
||||
callback: function() {
|
||||
me._state.lostEditingRights = false;
|
||||
@ -2832,7 +2832,7 @@ define([
|
||||
}
|
||||
Common.UI.alert({
|
||||
title: this.notcriticalErrorTitle,
|
||||
msg: (opts.data.error) ? opts.data.error : this.txtErrorLoadHistory,
|
||||
msg: (opts.data.error) ? Common.Utils.String.htmlEncode(opts.data.error) : this.txtErrorLoadHistory,
|
||||
iconCls: 'warn',
|
||||
buttons: ['ok'],
|
||||
callback: _.bind(function(btn){
|
||||
|
||||
@ -634,7 +634,7 @@ define([
|
||||
this.api.asc_coAuthoringDisconnect();
|
||||
Common.NotificationCenter.trigger('collaboration:sharingdeny');
|
||||
Common.NotificationCenter.trigger('api:disconnect');
|
||||
!old_rights && Common.UI.TooltipManager.showTip({ step: 'changeRights', text: _.isEmpty(data.message) ? this.warnProcessRightsChange : data.message,
|
||||
!old_rights && Common.UI.TooltipManager.showTip({ step: 'changeRights', text: _.isEmpty(data.message) ? this.warnProcessRightsChange : Common.Utils.String.htmlEncode(data.message),
|
||||
target: '#toolbar', maxwidth: 600, showButton: false, automove: true, noHighlight: true, noArrow: true, multiple: true,
|
||||
callback: function() {
|
||||
me._state.lostEditingRights = false;
|
||||
@ -3552,7 +3552,7 @@ define([
|
||||
}
|
||||
Common.UI.alert({
|
||||
title: this.notcriticalErrorTitle,
|
||||
msg: (opts.data.error) ? opts.data.error : this.txtErrorLoadHistory,
|
||||
msg: (opts.data.error) ? Common.Utils.String.htmlEncode(opts.data.error) : this.txtErrorLoadHistory,
|
||||
iconCls: 'warn',
|
||||
buttons: ['ok'],
|
||||
callback: _.bind(function(btn){
|
||||
|
||||
@ -486,7 +486,7 @@ define([
|
||||
this.api.asc_coAuthoringDisconnect();
|
||||
Common.NotificationCenter.trigger('collaboration:sharingdeny');
|
||||
Common.NotificationCenter.trigger('api:disconnect');
|
||||
!old_rights && Common.UI.TooltipManager.showTip({ step: 'changeRights', text: _.isEmpty(data.message) ? this.warnProcessRightsChange : data.message,
|
||||
!old_rights && Common.UI.TooltipManager.showTip({ step: 'changeRights', text: _.isEmpty(data.message) ? this.warnProcessRightsChange : Common.Utils.String.htmlEncode(data.message),
|
||||
target: '#toolbar', maxwidth: 600, showButton: false, automove: true, noHighlight: true, noArrow: true, multiple: true,
|
||||
callback: function() {
|
||||
me._state.lostEditingRights = false;
|
||||
|
||||
Reference in New Issue
Block a user