projects
/
blerg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'enyo-rewrite'
[blerg.git]
/
www
/
jssrc
/
blerg
/
API.js
diff --git
a/www/jssrc/blerg/API.js
b/www/jssrc/blerg/API.js
index
4a0602b
..
95cdbcd
100644
(file)
--- a/
www/jssrc/blerg/API.js
+++ b/
www/jssrc/blerg/API.js
@@
-47,10
+47,10
@@
enyo.kind({
req.error(function() {
this.bubble('onSignupFailure', {username: username});
}.bind(this));
req.error(function() {
this.bubble('onSignupFailure', {username: username});
}.bind(this));
- req.go({
+ req.go(
enyo.Ajax.objectToQuery(
{
username: username,
password: password,
username: username,
password: password,
- });
+ })
)
;
},
login: function(username, password) {
var req = new enyo.Ajax({
},
login: function(username, password) {
var req = new enyo.Ajax({
@@
-68,10
+68,10
@@
enyo.kind({
this.bubble('onLoginFailed');
}
}.bind(this));
this.bubble('onLoginFailed');
}
}.bind(this));
- req.go({
+ req.go(
enyo.Ajax.objectToQuery(
{
username: username,
password: password
username: username,
password: password
- });
+ })
)
;
},
logout: function() {
var req = new enyo.Ajax({
},
logout: function() {
var req = new enyo.Ajax({
@@
-83,9
+83,9
@@
enyo.kind({
enyo.setCookie('auth', '', {"Max-Age": 0});
this.bubble('onLogoutSuccessful');
}.bind(this));
enyo.setCookie('auth', '', {"Max-Age": 0});
this.bubble('onLogoutSuccessful');
}.bind(this));
- req.go({
+ req.go(
enyo.Ajax.objectToQuery(
{
username: blerg.API.username
username: blerg.API.username
- });
+ })
)
;
enyo.setCookie('username', '', {"Max-Age": 0});
},
changePassword: function(oldpassword, newpassword) {
enyo.setCookie('username', '', {"Max-Age": 0});
},
changePassword: function(oldpassword, newpassword) {
@@
-100,11
+100,11
@@
enyo.kind({
this.bubble('onPasswordChangeFailed');
}
}.bind(this));
this.bubble('onPasswordChangeFailed');
}
}.bind(this));
- req.go({
+ req.go(
enyo.Ajax.objectToQuery(
{
username: blerg.API.username,
password: oldpassword,
new_password: newpassword
username: blerg.API.username,
password: oldpassword,
new_password: newpassword
- });
+ })
)
;
},
loadUserRecords: function(username, from ,to) {
var url;
},
loadUserRecords: function(username, from ,to) {
var url;
@@
-173,9
+173,9
@@
enyo.kind({
req.response(function(inSender, inResponse) {
this.bubble('onFeedInfo', inResponse);
}.bind(this));
req.response(function(inSender, inResponse) {
this.bubble('onFeedInfo', inResponse);
}.bind(this));
- req.go({
+ req.go(
enyo.Ajax.objectToQuery(
{
username: blerg.API.username
username: blerg.API.username
- });
+ })
)
;
},
loadFeed: function() {
if (!blerg.API.loggedIn)
},
loadFeed: function() {
if (!blerg.API.loggedIn)
@@
-191,9
+191,9
@@
enyo.kind({
entries: inResponse
});
}.bind(this));
entries: inResponse
});
}.bind(this));
- req.go({
+ req.go(
enyo.Ajax.objectToQuery(
{
username: blerg.API.username
username: blerg.API.username
- });
+ })
)
;
},
getSubscriptionStatus: function(username) {
var req = new enyo.Ajax({
},
getSubscriptionStatus: function(username) {
var req = new enyo.Ajax({
@@
-206,9
+206,9
@@
enyo.kind({
subscribed: inResponse.subscribed
});
}.bind(this));
subscribed: inResponse.subscribed
});
}.bind(this));
- req.go({
+ req.go(
enyo.Ajax.objectToQuery(
{
username: blerg.API.username
username: blerg.API.username
- });
+ })
)
;
},
subscribe: function(username) {
var req = new enyo.Ajax({
},
subscribe: function(username) {
var req = new enyo.Ajax({
@@
-221,9
+221,9
@@
enyo.kind({
subscribed: inResponse.status == "success"
});
}.bind(this));
subscribed: inResponse.status == "success"
});
}.bind(this));
- req.go({
+ req.go(
enyo.Ajax.objectToQuery(
{
username: blerg.API.username
username: blerg.API.username
- });
+ })
)
;
},
unsubscribe: function(username) {
var req = new enyo.Ajax({
},
unsubscribe: function(username) {
var req = new enyo.Ajax({
@@
-236,9
+236,9
@@
enyo.kind({
subscribed: inResponse.status != "success"
});
}.bind(this));
subscribed: inResponse.status != "success"
});
}.bind(this));
- req.go({
+ req.go(
enyo.Ajax.objectToQuery(
{
username: blerg.API.username
username: blerg.API.username
- });
+ })
)
;
},
post: function(data) {
var req = new enyo.Ajax({
},
post: function(data) {
var req = new enyo.Ajax({
@@
-258,9
+258,9
@@
enyo.kind({
});
}
}.bind(this));
});
}
}.bind(this));
- req.go({
+ req.go(
enyo.Ajax.objectToQuery(
{
username: blerg.API.username,
data: data
username: blerg.API.username,
data: data
- });
+ })
)
;
}
});
}
});