aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rwxr-xr-xjs/io/document/document-controller.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/js/io/document/document-controller.js b/js/io/document/document-controller.js
index 6f363bc7..7cf7f409 100755
--- a/js/io/document/document-controller.js
+++ b/js/io/document/document-controller.js
@@ -15,7 +15,7 @@ No rights, expressed or implied, whatsoever to this software are provided by Mot
15var Montage = require("montage/core/core").Montage, 15var Montage = require("montage/core/core").Montage,
16 Component = require("montage/ui/component").Component, 16 Component = require("montage/ui/component").Component,
17 Uuid = require("montage/core/uuid").Uuid, 17 Uuid = require("montage/core/uuid").Uuid,
18 fileSystem = require("js/io/system/filesystem").FileSystem; 18 fileSystem = require("js/io/system/coreioapi").CoreIoApi;
19 19
20var HTMLDocument = require("js/io/document/html-document").HTMLDocument; 20var HTMLDocument = require("js/io/document/html-document").HTMLDocument;
21var TextDocument = require("js/io/document/text-document").TextDocument; 21var TextDocument = require("js/io/document/text-document").TextDocument;
@@ -104,7 +104,7 @@ var DocumentController = exports.DocumentController = Montage.create(Component,
104 104
105 // Get file from Jose Code with a callback to here 105 // Get file from Jose Code with a callback to here
106 if(!!uri){ 106 if(!!uri){
107 response = fileSystem.shellApiHandler.openFile({"uri":uri}); 107 response = fileSystem.openFile({"uri":uri});
108 if((response.success === true) && ((response.status === 200) || (response.status === 304))){ 108 if((response.success === true) && ((response.status === 200) || (response.status === 304))){
109 fileContent = response.content; 109 fileContent = response.content;
110 } 110 }
@@ -417,10 +417,10 @@ _createTextAreaElement: {
417 417
418 codeMirrorDiv.appendChild(textArea); 418 codeMirrorDiv.appendChild(textArea);
419 419
420 if(!this._textHolder) this._textHolder = document.getElementById("codeViewContainer"); 420// if(!this._textHolder) this._textHolder = document.getElementById("codeViewContainer");
421 this._textHolder.appendChild(codeMirrorDiv); 421// this._textHolder.appendChild(codeMirrorDiv);
422 422
423 return codeMirrorDiv; 423 return textArea;
424 } 424 }
425 } 425 }
426}); \ No newline at end of file 426}); \ No newline at end of file