Fix creating new file when templates avaliable.
This commit is contained in:
parent
0c09284b3a
commit
2b81097012
|
@ -511,7 +511,7 @@ define([
|
||||||
|
|
||||||
onCreateNew: function(menu, type) {
|
onCreateNew: function(menu, type) {
|
||||||
if ( !Common.Controllers.Desktop.process('create:new') ) {
|
if ( !Common.Controllers.Desktop.process('create:new') ) {
|
||||||
if (this.mode.canRequestCreateNew)
|
if (type == 'blank' && this.mode.canRequestCreateNew)
|
||||||
Common.Gateway.requestCreateNew();
|
Common.Gateway.requestCreateNew();
|
||||||
else {
|
else {
|
||||||
var newDocumentPage = window.open(type == 'blank' ? this.mode.createUrl : type, "_blank");
|
var newDocumentPage = window.open(type == 'blank' ? this.mode.createUrl : type, "_blank");
|
||||||
|
|
|
@ -384,7 +384,7 @@ define([
|
||||||
|
|
||||||
onCreateNew: function(menu, type) {
|
onCreateNew: function(menu, type) {
|
||||||
if ( !Common.Controllers.Desktop.process('create:new') ) {
|
if ( !Common.Controllers.Desktop.process('create:new') ) {
|
||||||
if (this.mode.canRequestCreateNew)
|
if (type == 'blank' && this.mode.canRequestCreateNew)
|
||||||
Common.Gateway.requestCreateNew();
|
Common.Gateway.requestCreateNew();
|
||||||
else {
|
else {
|
||||||
var newDocumentPage = window.open(type == 'blank' ? this.mode.createUrl : type, "_blank");
|
var newDocumentPage = window.open(type == 'blank' ? this.mode.createUrl : type, "_blank");
|
||||||
|
|
|
@ -500,7 +500,7 @@ define([
|
||||||
|
|
||||||
onCreateNew: function(menu, type) {
|
onCreateNew: function(menu, type) {
|
||||||
if ( !Common.Controllers.Desktop.process('create:new') ) {
|
if ( !Common.Controllers.Desktop.process('create:new') ) {
|
||||||
if (this.mode.canRequestCreateNew)
|
if (type == 'blank' && this.mode.canRequestCreateNew)
|
||||||
Common.Gateway.requestCreateNew();
|
Common.Gateway.requestCreateNew();
|
||||||
else {
|
else {
|
||||||
var newDocumentPage = window.open(type == 'blank' ? this.mode.createUrl : type, "_blank");
|
var newDocumentPage = window.open(type == 'blank' ? this.mode.createUrl : type, "_blank");
|
||||||
|
|
Loading…
Reference in a new issue