Fix creating new file when templates avaliable.

This commit is contained in:
Julia Radzhabova 2021-08-24 16:16:04 +03:00
parent 0c09284b3a
commit 2b81097012
3 changed files with 3 additions and 3 deletions

View file

@ -511,7 +511,7 @@ define([
onCreateNew: function(menu, type) {
if ( !Common.Controllers.Desktop.process('create:new') ) {
if (this.mode.canRequestCreateNew)
if (type == 'blank' && this.mode.canRequestCreateNew)
Common.Gateway.requestCreateNew();
else {
var newDocumentPage = window.open(type == 'blank' ? this.mode.createUrl : type, "_blank");

View file

@ -384,7 +384,7 @@ define([
onCreateNew: function(menu, type) {
if ( !Common.Controllers.Desktop.process('create:new') ) {
if (this.mode.canRequestCreateNew)
if (type == 'blank' && this.mode.canRequestCreateNew)
Common.Gateway.requestCreateNew();
else {
var newDocumentPage = window.open(type == 'blank' ? this.mode.createUrl : type, "_blank");

View file

@ -500,7 +500,7 @@ define([
onCreateNew: function(menu, type) {
if ( !Common.Controllers.Desktop.process('create:new') ) {
if (this.mode.canRequestCreateNew)
if (type == 'blank' && this.mode.canRequestCreateNew)
Common.Gateway.requestCreateNew();
else {
var newDocumentPage = window.open(type == 'blank' ? this.mode.createUrl : type, "_blank");