diff options
author | Ananya Sen | 2012-05-18 18:38:09 -0700 |
---|---|---|
committer | Ananya Sen | 2012-05-18 18:38:09 -0700 |
commit | 6f5ffa17c72dd0aef7a02e3496154514750143c2 (patch) | |
tree | d9a6e2b33ad6dcdd308869cfdf9014ae720d8fe6 /js/controllers | |
parent | bddbcd15c165ac0731de204b023a1e60d71b5d79 (diff) | |
download | ninja-6f5ffa17c72dd0aef7a02e3496154514750143c2.tar.gz |
save for code view documents in the new dom architecture
Signed-off-by: Ananya Sen <Ananya.Sen@motorola.com>
Diffstat (limited to 'js/controllers')
-rwxr-xr-x | js/controllers/document-controller.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/js/controllers/document-controller.js b/js/controllers/document-controller.js index 86b1d057..814a30e1 100755 --- a/js/controllers/document-controller.js +++ b/js/controllers/document-controller.js | |||
@@ -356,7 +356,8 @@ var DocumentController = exports.DocumentController = Montage.create(Component, | |||
356 | console.log("URI is: ", uri); | 356 | console.log("URI is: ", uri); |
357 | } | 357 | } |
358 | }, | 358 | }, |
359 | 359 | ||
360 | //todo: remove this funciton as it is not used | ||
360 | textDocumentOpened: { | 361 | textDocumentOpened: { |
361 | value: function(doc) { | 362 | value: function(doc) { |
362 | 363 | ||
@@ -413,6 +414,11 @@ var DocumentController = exports.DocumentController = Montage.create(Component, | |||
413 | 414 | ||
414 | this.application.ninja.stage.hideCanvas(true); | 415 | this.application.ninja.stage.hideCanvas(true); |
415 | 416 | ||
417 | if(this._documents.length === 0){ | ||
418 | document.getElementById("iframeContainer").style.display="block"; | ||
419 | document.getElementById("codeViewContainer").style.display="block"; | ||
420 | } | ||
421 | |||
416 | 422 | ||
417 | NJevent("closeDocument", doc.model.file.uri); | 423 | NJevent("closeDocument", doc.model.file.uri); |
418 | //TODO: Delete object here | 424 | //TODO: Delete object here |