aboutsummaryrefslogtreecommitdiff
path: root/js/io/document/document-controller.js
diff options
context:
space:
mode:
authorAnanya Sen2012-02-10 15:50:14 -0800
committerAnanya Sen2012-02-10 15:50:14 -0800
commitc627ebb5735d55218813b073c655dae6cded6040 (patch)
treef716757dab75d7626297893c7f4aca3596d606de /js/io/document/document-controller.js
parent8c40940f030adb74f534c3c5ad8d845e41f09b30 (diff)
downloadninja-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/document-controller.js')
-rwxr-xr-xjs/io/document/document-controller.js3
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 },