Benjamin Renard commited on 2014-01-27 22:51:03
Showing 1 changed files, with 3 additions and 2 deletions.
... | ... |
@@ -404,7 +404,7 @@ function SyncServer() { |
404 | 404 |
this.email=email; |
405 | 405 |
this.password=password; |
406 | 406 |
try { |
407 |
- jQuery.getJSON( |
|
407 |
+ jQuery.post( |
|
408 | 408 |
this.url+'/sync', |
409 | 409 |
{ |
410 | 410 |
'email':email, |
... | ... |
@@ -421,7 +421,8 @@ function SyncServer() { |
421 | 421 |
} |
422 | 422 |
} |
423 | 423 |
onerror(data); |
424 |
- } |
|
424 |
+ }, |
|
425 |
+ 'json' |
|
425 | 426 |
).fail(onerror); |
426 | 427 |
} |
427 | 428 |
catch(e) { |
428 | 429 |