diff options
author | Ananya Sen | 2012-05-21 16:42:26 -0700 |
---|---|---|
committer | Ananya Sen | 2012-05-21 16:42:26 -0700 |
commit | 2cc8e58f6bb9f64a7473e62aecd013fa55167231 (patch) | |
tree | 4969012e500a27c72cf59c0a631990c6b9a1c333 /js/components | |
parent | c3c2ffc8d057660b7c42b45442885cd0d2d598bc (diff) | |
download | ninja-2cc8e58f6bb9f64a7473e62aecd013fa55167231.tar.gz |
- added opening multiple code and design view documents
- switching between multiple code and design view documents
- Note: closing of documents, when multiple documents are open, is not yet implemented
Signed-off-by: Ananya Sen <Ananya.Sen@motorola.com>
Diffstat (limited to 'js/components')
-rwxr-xr-x | js/components/layout/document-entry.reel/document-entry.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/components/layout/document-entry.reel/document-entry.js b/js/components/layout/document-entry.reel/document-entry.js index 50b3624c..24c7737c 100755 --- a/js/components/layout/document-entry.reel/document-entry.js +++ b/js/components/layout/document-entry.reel/document-entry.js | |||
@@ -122,7 +122,7 @@ exports.DocumentEntry = Montage.create(Component, { | |||
122 | this.application.ninja.documentController.closeFile(this.application.ninja.documentController._findDocumentByUUID(this._uuid)); | 122 | this.application.ninja.documentController.closeFile(this.application.ninja.documentController._findDocumentByUUID(this._uuid)); |
123 | } else { | 123 | } else { |
124 | if(!this.active) { | 124 | if(!this.active) { |
125 | this.application.ninja.documentController.switchDocuments(this.application.ninja.currentDocument, this.application.ninja.documentController._findDocumentByUUID(this._uuid)); | 125 | this.application.ninja.documentController.switchDocuments(this.application.ninja.documentController.activeDocument, this.application.ninja.documentController._findDocumentByUUID(this._uuid)); |
126 | } | 126 | } |
127 | } | 127 | } |
128 | } | 128 | } |