From 4ea645b572831786434fab28d1c448e06109cf64 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Wed, 1 Jun 2011 12:59:12 +0200 Subject: [PATCH] ids -> positions --- source/Ox.UI/js/List/Ox.List.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/Ox.UI/js/List/Ox.List.js b/source/Ox.UI/js/List/Ox.List.js index 4934b972..cbaadf07 100644 --- a/source/Ox.UI/js/List/Ox.List.js +++ b/source/Ox.UI/js/List/Ox.List.js @@ -567,11 +567,11 @@ Ox.List = function(options, self) { // fixme: optimize: send non-selected ids if more than half of the items are selected if (self.options.selected.length /*&& ids.length < self.listLength*/) { /*Ox.print('-------- request', { - ids: ids, + positions: ids, sort: self.options.sort });*/ self.requests.push(self.options.items({ - ids: self.options.selected, + positions: self.options.selected, sort: self.options.sort }, function(result) { getPositionsCallback(result, callback); @@ -586,7 +586,7 @@ Ox.List = function(options, self) { var pos = 0; if (result) { $.extend(self, { - ids: {}, + positions: {}, selected: [] }); Ox.forEach(result.data.positions, function(pos, id) { @@ -1109,7 +1109,7 @@ Ox.List = function(options, self) { } else { // async and id not in current view self.options.items({ - ids: [id], + positions: [id], sort: self.options.sort }, function(results) { pos = results.data.positions[id];