more list
This commit is contained in:
parent
f4972f45c9
commit
a5c5ab7e4d
2 changed files with 25 additions and 13 deletions
|
|
@ -532,6 +532,8 @@ requires
|
|||
|
||||
Ox.Request = function() {
|
||||
|
||||
// chained requests, make cancelable: id = 4.7.9
|
||||
|
||||
var cache = {},
|
||||
pending = {},
|
||||
requests = {},
|
||||
|
|
@ -2477,7 +2479,7 @@ requires
|
|||
if (!Ox.isUndefined(self.$items[pos])) {
|
||||
self.$items[pos].addClass("OxSelected");
|
||||
}
|
||||
Ox.Event.trigger("select_" + self.options.id, {
|
||||
that.triggerEvent("select", {
|
||||
ids: $.map(self.selected, function(v, i) {
|
||||
return self.ids[v];
|
||||
})
|
||||
|
|
@ -2487,6 +2489,7 @@ requires
|
|||
|
||||
function clear() {
|
||||
$.each(self.requests, function(i, v) {
|
||||
Ox.print("Ox.Request.cancel", v);
|
||||
Ox.Request.cancel(v);
|
||||
});
|
||||
$.extend(self, {
|
||||
|
|
@ -2524,7 +2527,7 @@ requires
|
|||
if (!Ox.isUndefined(self.$items[pos])) {
|
||||
self.$items[pos].removeClass("OxSelected");
|
||||
}
|
||||
Ox.Event.trigger("select_" + self.options.id, {
|
||||
that.triggerEvent("select", {
|
||||
ids: $.map(self.selected, function(v, i) {
|
||||
return self.ids[v];
|
||||
})
|
||||
|
|
@ -2548,9 +2551,9 @@ requires
|
|||
}
|
||||
|
||||
function getPage() {
|
||||
return self.options.orientation == "vertical"
|
||||
? Math.floor(that.scrollTop() / self.pageHeight)
|
||||
: Math.floor(that.scrollLeft() / self.pageWidth);
|
||||
return self.options.orientation == "horizontal"
|
||||
? Math.floor(that.scrollLeft() / self.pageWidth)
|
||||
: Math.floor(that.scrollTop() / self.pageHeight);
|
||||
}
|
||||
|
||||
function getPositions() {
|
||||
|
|
@ -2855,7 +2858,7 @@ requires
|
|||
key: key,
|
||||
operator: operator
|
||||
}
|
||||
// fixme: trigger sort event here
|
||||
that.triggerEvent("sort", self.options.sort[0]);
|
||||
updateSort();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue