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?
|
||||
var data;
|
||||
clear(); // fixme: bad function name ... clear what?
|
||||
self.requests.push(self.options.items({
|
||||
self.requests.push(data = self.options.items({
|
||||
query: self.options.query
|
||||
}, function(result) {
|
||||
var keys = {};
|
||||
|
@ -1414,7 +1415,10 @@ Ox.List = function(options, self) {
|
|||
setTimeout(function() {
|
||||
that.triggerEvent(
|
||||
'init',
|
||||
result.data
|
||||
Ox.extend(
|
||||
result.data,
|
||||
data && data.query ? {query: data.query} : {}
|
||||
)
|
||||
);
|
||||
self.rowLength = getRowLength();
|
||||
self.pageLength = self.options.orientation == 'both'
|
||||
|
|
Loading…
Reference in a new issue