From c1ce0e62e76a7ae18e76829e9ecc33c73fdc16fa Mon Sep 17 00:00:00 2001 From: coderaiser Date: Mon, 14 Jan 2013 05:34:26 -0500 Subject: [PATCH] added ability to authorize on dropbox thru popup --- ChangeLog | 2 ++ html/auth/github.html | 2 +- lib/client/storage/_dropbox.js | 7 ++++++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 124eca45..ae710bdd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 diff --git a/html/auth/github.html b/html/auth/github.html index 97cc1a14..1aa4ed8f 100644 --- a/html/auth/github.html +++ b/html/auth/github.html @@ -1,4 +1,4 @@ - + diff --git a/lib/client/storage/_dropbox.js b/lib/client/storage/_dropbox.js index 9d3ba79d..49d4e32d 100644 --- a/lib/client/storage/_dropbox.js +++ b/lib/client/storage/_dropbox.js @@ -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);