aboutsummaryrefslogtreecommitdiff
path: root/js/io/ui/file-picker
diff options
context:
space:
mode:
Diffstat (limited to 'js/io/ui/file-picker')
-rwxr-xr-xjs/io/ui/file-picker/file-picker-controller.js14
1 files changed, 0 insertions, 14 deletions
diff --git a/js/io/ui/file-picker/file-picker-controller.js b/js/io/ui/file-picker/file-picker-controller.js
index 129bebad..5e4d0be8 100755
--- a/js/io/ui/file-picker/file-picker-controller.js
+++ b/js/io/ui/file-picker/file-picker-controller.js
@@ -33,7 +33,6 @@ var FilePickerController = exports.FilePickerController = Montage.create(require
33 }, 33 },
34 34
35 filePickerPopupType:{ 35 filePickerPopupType:{
36 writable: true,
37 enumerable: false, 36 enumerable: false,
38 value: "filePicker" 37 value: "filePicker"
39 }, 38 },
@@ -152,15 +151,6 @@ var FilePickerController = exports.FilePickerController = Montage.create(require
152 writable:false, 151 writable:false,
153 enumerable:true, 152 enumerable:true,
154 value:function(callback, aModel){ 153 value:function(callback, aModel){
155 //render modal dialog
156 var pickerNavContent = document.createElement("div");
157 pickerNavContent.id = "filePicker";
158
159 pickerNavContent.style.color = "#fff";
160
161 //hack (elements needs to be on DOM to be drawn)
162 document.getElementById('modalContainer').appendChild(pickerNavContent);
163
164 var pickerNavChoices = Montage.create(pickerNavigatorReel); 154 var pickerNavChoices = Montage.create(pickerNavigatorReel);
165 var initUri = aModel.currentRoot; 155 var initUri = aModel.currentRoot;
166 156
@@ -171,10 +161,6 @@ var FilePickerController = exports.FilePickerController = Montage.create(require
171 161
172 pickerNavChoices.mainContentData = this.prepareContentList(initUri, aModel); 162 pickerNavChoices.mainContentData = this.prepareContentList(initUri, aModel);
173 pickerNavChoices.pickerModel = aModel; 163 pickerNavChoices.pickerModel = aModel;
174 pickerNavChoices.element = pickerNavContent;
175
176 //hack - remove after rendering and add in modal dialog
177 document.getElementById('modalContainer').removeChild(pickerNavContent);
178 164
179 var popup = Popup.create(); 165 var popup = Popup.create();
180 popup.content = pickerNavChoices; 166 popup.content = pickerNavChoices;