mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-05 16:46:26 +00:00
collection searches for records older than a certain date now use the 'older' parameter instead of 'modified', since the latter is ambiguous depending on the verb used
This commit is contained in:
parent
d49465a6b0
commit
5219e46225
@ -65,7 +65,7 @@ Collection.prototype = {
|
|||||||
this._init(uri);
|
this._init(uri);
|
||||||
this.pushFilter(new JsonFilter());
|
this.pushFilter(new JsonFilter());
|
||||||
this._full = true;
|
this._full = true;
|
||||||
this._modified = 0;
|
this._older = 0;
|
||||||
this._data = [];
|
this._data = [];
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -74,8 +74,8 @@ Collection.prototype = {
|
|||||||
this.uri.QueryInterface(Ci.nsIURL);
|
this.uri.QueryInterface(Ci.nsIURL);
|
||||||
|
|
||||||
let args = [];
|
let args = [];
|
||||||
if (this.modified)
|
if (this.older)
|
||||||
args.push('modified=' + this.modified);
|
args.push('older=' + this.older);
|
||||||
if (this.full)
|
if (this.full)
|
||||||
args.push('full=1');
|
args.push('full=1');
|
||||||
if (this.sort)
|
if (this.sort)
|
||||||
@ -92,9 +92,9 @@ Collection.prototype = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
// get only items modified since some date
|
// get only items modified since some date
|
||||||
get modified() { return this._modified; },
|
get older() { return this._older; },
|
||||||
set modified(value) {
|
set older(value) {
|
||||||
this._modified = value;
|
this._older = value;
|
||||||
this._rebuildURL();
|
this._rebuildURL();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user