[SSE] Fix multiple press Ctrl+P

This commit is contained in:
Julia Radzhabova 2018-07-25 14:24:45 +03:00
parent 16e0217007
commit 990064c7ed

View file

@ -222,6 +222,7 @@ define([
}, },
openPrintSettings: function(type, cmp, format, asUrl) { openPrintSettings: function(type, cmp, format, asUrl) {
if (this.printSettingsDlg) return;
if (this.api) { if (this.api) {
this.asUrl = asUrl; this.asUrl = asUrl;
this.downloadFormat = format; this.downloadFormat = format;
@ -261,6 +262,7 @@ define([
return true; return true;
} else } else
Common.NotificationCenter.trigger('edit:complete', view); Common.NotificationCenter.trigger('edit:complete', view);
this.printSettingsDlg = null;
}, },
querySavePrintSettings: function() { querySavePrintSettings: function() {