Skip to content
This repository was archived by the owner on Sep 11, 2019. It is now read-only.

Commit

Permalink
Fixed the ajax today call on iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
NitroG42 committed Jun 9, 2015
1 parent 9fe5074 commit 5ec6311
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
12 changes: 6 additions & 6 deletions appinfo.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,24 +28,24 @@
"name": "MONO_FONT_14",
"type": "font"
},
{
"file": "images/checkmark.png",
"name": "IMAGES_CHECKMARK_PNG",
"type": "png"
},
{
"file": "images/todoist.png",
"menuIcon": true,
"name": "IMAGES_TODOIST_PNG",
"type": "png"
},
{
"file": "images/checkmark.png",
"name": "IMAGES_CHECKMARK_PNG",
"type": "png"
}
]
},
"sdkVersion": "3",
"shortName": "MyTodoist",
"uuid": "30025c65-8dab-40cf-9f47-c75c708799af",
"versionCode": 1,
"versionLabel": "1.2",
"versionLabel": "1.4",
"watchapp": {
"watchface": false
}
Expand Down
6 changes: 5 additions & 1 deletion src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,13 @@ function queryToday() {
items: []
}]
});
var params = {
token: token,
queries: JSON.stringify([todayString, overdueString])
};
Ajax(
{
url: 'https://todoist.com/API/query?token='+token+"&queries="+JSON.stringify([todayString, overdueString]),
url: 'https://todoist.com/API/query?' + Ajax.formify(params) ,
type: 'json',
},
function(data) {
Expand Down

0 comments on commit 5ec6311

Please sign in to comment.