added ability to authorize on dropbox thru popup

This commit is contained in:
coderaiser 2013-01-14 05:34:26 -05:00
parent 72b2417195
commit c1ce0e62e7
3 changed files with 9 additions and 2 deletions

View file

@ -75,6 +75,8 @@ clicked on menu item.
* Updated dropbox library to v.0.8.1.
* Added ability to authorize on dropbox thru popup.
2012.12.12, Version 0.1.8

View file

@ -1,4 +1,4 @@
<!doctype html>
<!DOCTYPE html>
<html>
<head></head>
<body>

View file

@ -57,7 +57,12 @@ var CloudCommander, Util, DOM, Dropbox, cb, Client;
key: pConfig.dropbox_encoded_key
});
Client.authDriver(new Dropbox.Drivers.Redirect({rememberUser: true}));
//Client.authDriver(new Dropbox.Drivers.Redirect({rememberUser: true}));
var lURL = CloudCmd.HOST + '/html/auth/dropbox.html';
Client.authDriver(new Dropbox.Drivers.Popup({
receiverUrl: lURL, noFragment: true
}));
Client.authenticate(function(pError, pClient) {
Util.log(pError);