git-svn-id: https://msi/svn/firstRepo/WebClient/branches/NewRelease@48 0f545695-f87b-41b6-9a03-7f16563b5454
This commit is contained in:
+22
-7
@@ -21,13 +21,8 @@ define(['jquery', 'underscore', 'backbone', 'text!modules/sync/syncViewTemplate.
|
||||
"click #backBtn": "backBtn",
|
||||
"click #fblogin": "fbLogin",
|
||||
"click #gpluslogin": "gplusLogin",
|
||||
"click #resetBtn": "resetBtn"
|
||||
},
|
||||
resetBtn: function (e) {
|
||||
e.preventDefault();
|
||||
Profile.resetProfile();
|
||||
this.updateLoginBtn();
|
||||
//Backbone.history.loadUrl();
|
||||
"click #fblogout": "fbLogout",
|
||||
"click #gpluslogout": "gplusLogout"
|
||||
},
|
||||
backBtn: function (e) {
|
||||
e.preventDefault();
|
||||
@@ -45,6 +40,26 @@ define(['jquery', 'underscore', 'backbone', 'text!modules/sync/syncViewTemplate.
|
||||
|
||||
hello('google').login();
|
||||
},
|
||||
fbLogout: function (e) {
|
||||
var self = this;
|
||||
e.preventDefault();
|
||||
|
||||
hello('facebook').logout().then(function() {
|
||||
Profile.resetProfile();
|
||||
self.updateLoginBtn();
|
||||
});
|
||||
|
||||
},
|
||||
gplusLogout: function (e) {
|
||||
var self = this;
|
||||
e.preventDefault();
|
||||
|
||||
hello('google').logout().
|
||||
then(function() {
|
||||
Profile.resetProfile();
|
||||
self.updateLoginBtn();
|
||||
});
|
||||
},
|
||||
updateLoginBtn: function ()
|
||||
{
|
||||
if (Profile.isConnected()) {
|
||||
|
||||
@@ -11,6 +11,5 @@
|
||||
<a href="#" data-rel="back" class="ui-btn ui-btn-b ui-corner-all ui-shadow ui-btn-a ui-icon-delete ui-btn-icon-notext ui-btn-right">Close</a>
|
||||
<iframe id="urlLogin" src="" width="497" height="298" seamless=""></iframe>
|
||||
</div>
|
||||
<a id="resetBtn" href="" class="ui-btn ui-corner-all ui-shadow">Reset Account</a>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user