diff options
author | Ananya Sen | 2012-02-10 15:50:14 -0800 |
---|---|---|
committer | Ananya Sen | 2012-02-10 15:50:14 -0800 |
commit | c627ebb5735d55218813b073c655dae6cded6040 (patch) | |
tree | f716757dab75d7626297893c7f4aca3596d606de /js/io/document | |
parent | 8c40940f030adb74f534c3c5ad8d845e41f09b30 (diff) | |
download | ninja-c627ebb5735d55218813b073c655dae6cded6040.tar.gz |
show iframeContainer if all documents are closed
Signed-off-by: Ananya Sen <Ananya.Sen@motorola.com>
Diffstat (limited to 'js/io/document')
-rwxr-xr-x | js/io/document/document-controller.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/js/io/document/document-controller.js b/js/io/document/document-controller.js index c2a2dab6..6dc7e670 100755 --- a/js/io/document/document-controller.js +++ b/js/io/document/document-controller.js | |||
@@ -293,6 +293,9 @@ var DocumentController = exports.DocumentController = Montage.create(Component, | |||
293 | nextDocumentIndex = closeDocumentIndex - 1; | 293 | nextDocumentIndex = closeDocumentIndex - 1; |
294 | } | 294 | } |
295 | this.application.ninja.stage.stageView.switchDocument(this._documents[nextDocumentIndex]); | 295 | this.application.ninja.stage.stageView.switchDocument(this._documents[nextDocumentIndex]); |
296 | }else{ | ||
297 | //if there are no documents to switch to then just show the iframeContainer | ||
298 | document.getElementById("iframeContainer").style.display="block"; | ||
296 | } | 299 | } |
297 | } | 300 | } |
298 | }, | 301 | }, |