aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rwxr-xr-xjs/controllers/document-controller.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/js/controllers/document-controller.js b/js/controllers/document-controller.js
index d88059ab..0a91ae29 100755
--- a/js/controllers/document-controller.js
+++ b/js/controllers/document-controller.js
@@ -155,13 +155,13 @@ var DocumentController = exports.DocumentController = Montage.create(Component,
155 }, 155 },
156 156
157 handleExecuteNewFile: { 157 handleExecuteNewFile: {
158 value: function(event) { 158 value: function(event) {
159 var newFileSettings = event._event.settings || {}; 159 var newFileSettings = event._event.settings || {};
160 if (this.application.ninja.coreIoApi.cloudAvailable()) { 160 if (this.application.ninja.coreIoApi.cloudAvailable()) {
161 newFileSettings.callback = this.createNewFile.bind(this); 161 newFileSettings.callback = this.createNewFile.bind(this);
162 this.application.ninja.newFileController.showNewFileDialog(newFileSettings); 162 this.application.ninja.newFileController.showNewFileDialog(newFileSettings);
163 }
164 } 163 }
164 }
165 }, 165 },
166 //////////////////////////////////////////////////////////////////// 166 ////////////////////////////////////////////////////////////////////
167 // 167 //
@@ -607,7 +607,7 @@ if(this.activeDocument && this.application.ninja.coreIoApi.cloudAvailable()){
607 //hide the iframe when switching to code view 607 //hide the iframe when switching to code view
608 document.getElementById("iframeContainer").style.display = "none"; 608 document.getElementById("iframeContainer").style.display = "none";
609 } 609 }
610 } 610 }
611 } 611 }
612 }, 612 },
613 613