Permalink
Browse files

change attend url api

  • Loading branch information...
swznd committed Jan 17, 2013
1 parent 0a93850 commit 7bbc609a76f867dd710c3e64f7e1914b5bcc9a66
Showing with 3 additions and 2 deletions.
  1. +3 −2 js/api.js
View
@@ -15,7 +15,7 @@ this.api = (function() {
// callback(false);
// }
// })
-
+
$.ajax({
url: APIURL+'event/list/?limit=10&token='+token,
dataType:'json',
@@ -165,7 +165,7 @@ this.api = (function() {
}
function setAttend(token,eid,type,callback) {
- var url = type == 'attend' ? APIURL+'user/attend' : APIURL+'user/unattend';
+ var url = type == 'attend' ? APIURL+'user/setattend' : APIURL+'user/setunattend';
data = {
eid : eid,
@@ -176,6 +176,7 @@ this.api = (function() {
mozSystem: true
});
xhr.open('POST', url, true);
+ xhr.setRequestHeader("Content-type","application/x-www-form-urlencoded");
xhr.onload = function() {
if(xhr.readyState == 200) {
if($.isFunction(callback)) {

0 comments on commit 7bbc609

Please sign in to comment.