diff options
author | Ananya Sen | 2012-05-22 17:58:23 -0700 |
---|---|---|
committer | Ananya Sen | 2012-05-22 17:58:23 -0700 |
commit | ee54342b5f4fdd41c46543d6402e649e4b3d57cb (patch) | |
tree | 398dca895c78b5a6a04cb2adcc32c6483c395356 /js/controllers | |
parent | 3493df6f1b1eaa20bb4f391e19c19bb7f3c872a0 (diff) | |
download | ninja-ee54342b5f4fdd41c46543d6402e649e4b3d57cb.tar.gz |
- don't redraw stage for code document - fixes a switching bug
- fix for ctrl+S for code document
- disallow opening the panels while in code document
Signed-off-by: Ananya Sen <Ananya.Sen@motorola.com>
Diffstat (limited to 'js/controllers')
-rwxr-xr-x | js/controllers/document-controller.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/js/controllers/document-controller.js b/js/controllers/document-controller.js index d99fadbb..91f4753d 100755 --- a/js/controllers/document-controller.js +++ b/js/controllers/document-controller.js | |||
@@ -524,6 +524,11 @@ var DocumentController = exports.DocumentController = Montage.create(Component, | |||
524 | this.application.ninja.stage.hideCanvas(true); | 524 | this.application.ninja.stage.hideCanvas(true); |
525 | this.application.ninja.stage.hideRulers(); | 525 | this.application.ninja.stage.hideRulers(); |
526 | } | 526 | } |
527 | }else if(!currentDocument && newDocument.currentView === "code"){ | ||
528 | this.application.ninja.stage.showCodeViewBar(true); | ||
529 | this.application.ninja.stage.collapseAllPanels(); | ||
530 | this.application.ninja.stage.hideCanvas(true); | ||
531 | this.application.ninja.stage.hideRulers(); | ||
527 | } | 532 | } |
528 | 533 | ||
529 | this.application.ninja.stage.clearAllCanvas(); | 534 | this.application.ninja.stage.clearAllCanvas(); |