|
@@ -1260,12 +1260,12 @@ DriveClient.prototype.pickFile = function(fn, acceptAllFiles)
|
|
|
*/
|
|
|
DriveClient.prototype.pickFolder = function(fn)
|
|
|
{
|
|
|
+ this.folderPickerCallback = fn;
|
|
|
+
|
|
|
// Picker is initialized once and points to this function
|
|
|
// which is overridden each time to the picker is shown
|
|
|
var showPicker = mxUtils.bind(this, function()
|
|
|
{
|
|
|
- this.folderPickerCallback = fn;
|
|
|
-
|
|
|
if (this.ui.spinner.spin(document.body, mxResources.get('authorizing')))
|
|
|
{
|
|
|
this.execute(mxUtils.bind(this, function()
|
|
@@ -1346,7 +1346,7 @@ DriveClient.prototype.pickFolder = function(fn)
|
|
|
}));
|
|
|
}
|
|
|
});
|
|
|
-
|
|
|
+
|
|
|
this.ui.confirm(mxResources.get('useRootFolder'), mxUtils.bind(this, function()
|
|
|
{
|
|
|
this.folderPickerCallback({action: google.picker.Action.PICKED,
|