|
|
@ -86,7 +86,7 @@ var Collection = PageableCollection.extend({
|
|
|
|
return {};
|
|
|
|
return {};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (this.state.pageSize == -1) {
|
|
|
|
if (this.state.pageSize === -1) {
|
|
|
|
return this.state;
|
|
|
|
return this.state;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -98,7 +98,7 @@ var Collection = PageableCollection.extend({
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
parseRecords : function(resp) {
|
|
|
|
parseRecords : function(resp) {
|
|
|
|
if (resp && this.mode !== 'client' && this.state.pageSize != 0 && this.state.pageSize != -1) {
|
|
|
|
if (resp && this.mode !== 'client' && this.state.pageSize !== 0 && this.state.pageSize !== -1) {
|
|
|
|
return resp.records;
|
|
|
|
return resp.records;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -252,7 +252,7 @@ var Collection = PageableCollection.extend({
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
add : function(model, options) {
|
|
|
|
add : function(model, options) {
|
|
|
|
if (this.length >= this.state.pageSize && this.state.pageSize != -1) {
|
|
|
|
if (this.length >= this.state.pageSize && this.state.pageSize !== -1) {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.origAdd.call(this, model, options);
|
|
|
|
this.origAdd.call(this, model, options);
|
|
|
|