Benjamin Renard commited on 2014-01-18 21:42:28
Showing 1 changed files, with 1 additions and 1 deletions.
| ... | ... |
@@ -354,7 +354,7 @@ function SyncServer() {
|
| 354 | 354 |
function(data, textStatus) {
|
| 355 | 355 |
console.log(data); |
| 356 | 356 |
if (textStatus=='success') {
|
| 357 |
- if(jQuery.type(data.email) && jQuery.type(data.name)) {
|
|
| 357 |
+ if(jQuery.type(data.email) != 'undefined' && jQuery.type(data.name) != 'undefined') {
|
|
| 358 | 358 |
console.log('Login success return');
|
| 359 | 359 |
console.log(onsuccess); |
| 360 | 360 |
onsuccess(data); |
| 361 | 361 |