aboutsummaryrefslogtreecommitdiff
path: root/js/io/ui/new-file-dialog
diff options
context:
space:
mode:
authorValerio Virgillito2012-02-21 21:11:54 -0800
committerValerio Virgillito2012-02-21 21:11:54 -0800
commitf86577d5083aeed2de7a932fe4147e9002e91554 (patch)
tree0f05977b69a692e2aab964e5dc0f316f24b25aeb /js/io/ui/new-file-dialog
parent2f24dafec79583547fe663d5a387d8ef15aae3bf (diff)
downloadninja-f86577d5083aeed2de7a932fe4147e9002e91554.tar.gz
cleanup - Removing temporary div to render the popups
We don't need to render the popup before opening them. Removing that hack. Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'js/io/ui/new-file-dialog')
-rwxr-xr-xjs/io/ui/new-file-dialog/new-file-workflow-controller.js12
1 files changed, 0 insertions, 12 deletions
diff --git a/js/io/ui/new-file-dialog/new-file-workflow-controller.js b/js/io/ui/new-file-dialog/new-file-workflow-controller.js
index 7b7f4572..c2be687a 100755
--- a/js/io/ui/new-file-dialog/new-file-workflow-controller.js
+++ b/js/io/ui/new-file-dialog/new-file-workflow-controller.js
@@ -29,7 +29,6 @@ var NewFileWorkflowController = exports.NewFileWorkflowController = Montage.cre
29 }, 29 },
30 30
31 model:{ 31 model:{
32 writable: true,
33 enumerable:true, 32 enumerable:true,
34 value: null 33 value: null
35 }, 34 },
@@ -56,19 +55,8 @@ var NewFileWorkflowController = exports.NewFileWorkflowController = Montage.cre
56 this.model.defaultProjectType = lastSelectedProjectType; 55 this.model.defaultProjectType = lastSelectedProjectType;
57 } 56 }
58 57
59 //render modal dialog
60 var newFileNavContent = document.createElement("div");
61 newFileNavContent.id = "newFileDialog";
62
63 //elements needs to be on DOM to be drawn
64 document.getElementById('modalContainer').appendChild(newFileNavContent);
65
66 var newFileOptionsNav = newFileOptionsNavigatorModule.NewFileOptionsNavigator.create(); 58 var newFileOptionsNav = newFileOptionsNavigatorModule.NewFileOptionsNavigator.create();
67 newFileOptionsNav.newFileModel = this.model; 59 newFileOptionsNav.newFileModel = this.model;
68 newFileOptionsNav.element = newFileNavContent;
69
70 //remove after rendering and add in modal dialog
71 document.getElementById('modalContainer').removeChild(newFileNavContent);
72 60
73 var popup = Popup.create(); 61 var popup = Popup.create();
74 popup.content = newFileOptionsNav; 62 popup.content = newFileOptionsNav;