Skip to content

Commit

Permalink
Fixing issue #51 - .count() not working
Browse files Browse the repository at this point in the history
  • Loading branch information
janhommes committed Sep 9, 2017
1 parent 56bdba6 commit f100b38
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
6 changes: 4 additions & 2 deletions o.js
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,9 @@
queryStr += '/';
}

queryStr = queryStr.slice(0, -1);
if(typeof res.appending === 'undefined' || res.appending === null) {
queryStr = queryStr.slice(0, -1);
}

return (queryStr + res.appending + getQuery());
}
Expand Down Expand Up @@ -887,7 +889,7 @@
if (resourceList.length === 0 && !isSave) {
startAjaxReq(createCORSRequest('GET', buildQuery()), null, callback, errorCallback, false,
[
{ name: 'Accept', value: 'application/json' },
{ name: 'Accept', value: 'application/json,text/plain' },
{ name: 'Content-Type', value: 'application/json' }
],
param, resource.progress);
Expand Down
Loading

0 comments on commit f100b38

Please sign in to comment.