Skip to content
This repository has been archived by the owner on Mar 2, 2022. It is now read-only.

Commit

Permalink
Merge branch 'release/0.4.5'
Browse files Browse the repository at this point in the history
Conflicts:
	package.json
  • Loading branch information
simon-scherzinger committed Sep 28, 2015
2 parents 9db9611 + 74bc97b commit caa7b99
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ec.datamanager.js",
"main": "build/datamanager.js",
"version": "0.4.3",
"version": "0.4.5",
"authors": [
"Ruben Deyhle <deyhle@entrecode.de>"
],
Expand Down
4 changes: 2 additions & 2 deletions build/datamanager.js

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions lib/DataManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ function optionsToQueryParameter(options) {
if (options && options.hasOwnProperty('sort') && Array.isArray(options.sort)) {
query.sort = options.sort.join(',');
}
if (options && options.hasOwnProperty('levels')) {
query._levels = options.levels;
}
if (options && options.hasOwnProperty('filter')) {
for (var key in options.filter) {
if (options.filter.hasOwnProperty(key)) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ec.datamanager",
"version": "0.4.4",
"version": "0.4.5",
"description": "JavaScript SDK for ec.datamanager. By entrecode.",
"main": "index.js",
"directories": {
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ dataManager.model('myModel').entryList({size: 100, sort: ['property', '-date']})
### Get Entries

```js
dataManager.model('myModel').entries({size: 100, sort: ['property' , '-date'])
dataManager.model('myModel').entries({size: 100, sort: ['property' , '-date'], "levels": 3)
.then(function(entries) {
console.log(entries); // success! array of Entries
})
Expand Down

0 comments on commit caa7b99

Please sign in to comment.