diff options
Diffstat (limited to 'js/io/ui/new-file-dialog/new-file-workflow-controller.js')
-rwxr-xr-x | js/io/ui/new-file-dialog/new-file-workflow-controller.js | 12 |
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 f34ee000..901b61c7 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 | |||
@@ -23,7 +23,6 @@ var NewFileWorkflowController = exports.NewFileWorkflowController = Montage.cre | |||
23 | }, | 23 | }, |
24 | 24 | ||
25 | model:{ | 25 | model:{ |
26 | writable: true, | ||
27 | enumerable:true, | 26 | enumerable:true, |
28 | value: null | 27 | value: null |
29 | }, | 28 | }, |
@@ -50,19 +49,8 @@ var NewFileWorkflowController = exports.NewFileWorkflowController = Montage.cre | |||
50 | this.model.defaultProjectType = lastSelectedProjectType; | 49 | this.model.defaultProjectType = lastSelectedProjectType; |
51 | } | 50 | } |
52 | 51 | ||
53 | //render modal dialog | ||
54 | var newFileNavContent = document.createElement("div"); | ||
55 | newFileNavContent.id = "newFileDialog"; | ||
56 | |||
57 | //elements needs to be on DOM to be drawn | ||
58 | document.getElementById('modalContainer').appendChild(newFileNavContent); | ||
59 | |||
60 | var newFileOptionsNav = newFileOptionsNavigatorModule.NewFileOptionsNavigator.create(); | 52 | var newFileOptionsNav = newFileOptionsNavigatorModule.NewFileOptionsNavigator.create(); |
61 | newFileOptionsNav.newFileModel = this.model; | 53 | newFileOptionsNav.newFileModel = this.model; |
62 | newFileOptionsNav.element = newFileNavContent; | ||
63 | |||
64 | //remove after rendering and add in modal dialog | ||
65 | document.getElementById('modalContainer').removeChild(newFileNavContent); | ||
66 | 54 | ||
67 | var popup = Popup.create(); | 55 | var popup = Popup.create(); |
68 | popup.content = newFileOptionsNav; | 56 | popup.content = newFileOptionsNav; |