Merge pull request #1587 from ONLYOFFICE/fix/fix-bugs

Fix/fix bugs
This commit is contained in:
Julia Radzhabova 2022-02-21 18:03:36 +03:00 committed by GitHub
commit 9d15df25bc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View file

@ -3982,6 +3982,9 @@ define([
api: me.api,
fontStore: me.fontStore,
handler: function(dlg, result) {
if (result === 'ok') {
me.getApplication().getController('Print').updatePreview();
}
Common.NotificationCenter.trigger('edit:complete');
}
});

View file

@ -448,7 +448,7 @@ define([
if (this.mode.canPrint) {
var printPanel = SSE.getController('Print').getView('PrintWithPreview');
printPanel.menu = this;
this.panels['printpreview'] = printPanel.render(this.$el.find('#panel-print'));
!this.panels['printpreview'] && (this.panels['printpreview'] = printPanel.render(this.$el.find('#panel-print')));
}
if ( Common.Controllers.Desktop.isActive() ) {