mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-24 00:37:20 +08:00
Fix creating new file when templates avaliable.
This commit is contained in:
@ -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");
|
||||
|
||||
@ -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");
|
||||
|
||||
@ -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");
|
||||
|
||||
Reference in New Issue
Block a user