revert last commit
This commit is contained in:
parent
e4b935e5ed
commit
e929a7266a
1 changed files with 6 additions and 2 deletions
|
@ -1403,8 +1403,9 @@ Ox.List = function(options, self) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function updateQuery(callback) { // fixme: shouldn't this be setQuery?
|
function updateQuery(callback) { // fixme: shouldn't this be setQuery?
|
||||||
|
var data;
|
||||||
clear(); // fixme: bad function name ... clear what?
|
clear(); // fixme: bad function name ... clear what?
|
||||||
self.requests.push(self.options.items({
|
self.requests.push(data = self.options.items({
|
||||||
query: self.options.query
|
query: self.options.query
|
||||||
}, function(result) {
|
}, function(result) {
|
||||||
var keys = {};
|
var keys = {};
|
||||||
|
@ -1414,7 +1415,10 @@ Ox.List = function(options, self) {
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
that.triggerEvent(
|
that.triggerEvent(
|
||||||
'init',
|
'init',
|
||||||
result.data
|
Ox.extend(
|
||||||
|
result.data,
|
||||||
|
data && data.query ? {query: data.query} : {}
|
||||||
|
)
|
||||||
);
|
);
|
||||||
self.rowLength = getRowLength();
|
self.rowLength = getRowLength();
|
||||||
self.pageLength = self.options.orientation == 'both'
|
self.pageLength = self.options.orientation == 'both'
|
||||||
|
|
Loading…
Reference in a new issue