aboutsummaryrefslogtreecommitdiff
path: root/js/io/ui/new-file-dialog
diff options
context:
space:
mode:
authorJose Antonio Marquez2012-03-14 15:17:01 -0700
committerJose Antonio Marquez2012-03-14 15:17:01 -0700
commite7e18f02870a0cfe06e550acf8ffef6eab945231 (patch)
treec940a63fd47e60f121c42b1823194522c8c2820f /js/io/ui/new-file-dialog
parentef601b13a2529c207eb782942e918212e5a0805e (diff)
parent089534a80c64226bf7d124ab9147afce386fdb5c (diff)
downloadninja-e7e18f02870a0cfe06e550acf8ffef6eab945231.tar.gz
Merge branch 'refs/heads/Ninja-Internal' into Document
Diffstat (limited to 'js/io/ui/new-file-dialog')
-rwxr-xr-xjs/io/ui/new-file-dialog/new-file-workflow-controller.js11
1 files changed, 0 insertions, 11 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 901b61c7..d065ca35 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
@@ -70,21 +70,10 @@ var NewFileWorkflowController = exports.NewFileWorkflowController = Montage.cre
70 var fileName = data.fileName || "filename.txt"; 70 var fileName = data.fileName || "filename.txt";
71 var folderUri = data.folderUri || "/Documents"; 71 var folderUri = data.folderUri || "/Documents";
72 72
73 //render modal dialog
74 var saveAsDialogContainer = document.createElement("div");
75 saveAsDialogContainer.id = "saveAsDialog";
76
77 //elements needs to be on DOM to be drawn
78 document.getElementById('modalContainer').appendChild(saveAsDialogContainer);
79
80 var saveAsDialog = saveAsModule.SaveAsDialog.create(); 73 var saveAsDialog = saveAsModule.SaveAsDialog.create();
81 saveAsDialog.fileName = fileName; 74 saveAsDialog.fileName = fileName;
82 saveAsDialog.folderUri = folderUri; 75 saveAsDialog.folderUri = folderUri;
83 saveAsDialog.callback = data.callback; 76 saveAsDialog.callback = data.callback;
84 saveAsDialog.element = saveAsDialogContainer;
85
86 //remove after rendering and add in modal dialog
87 document.getElementById('modalContainer').removeChild(saveAsDialogContainer);
88 77
89 var popup = Popup.create(); 78 var popup = Popup.create();
90 popup.content = saveAsDialog; 79 popup.content = saveAsDialog;