update type colors

This commit is contained in:
rolux 2011-06-01 13:01:29 +02:00
commit 63d34b5854
3 changed files with 6 additions and 6 deletions

View file

@ -74,7 +74,7 @@ Ox.IconItem = function(options, self) {
top: (self.options.size / 2) + 'px', top: (self.options.size / 2) + 'px',
width: (self.options.size + 4) + 'px', width: (self.options.size + 4) + 'px',
height: (self.options.size == 64 ? 30 : 58) + 'px' height: (self.options.size == 64 ? 30 : 58) + 'px'
}) });
that.$text = $('<div>') that.$text = $('<div>')
.addClass('OxTarget') .addClass('OxTarget')
.css({ .css({

View file

@ -567,11 +567,11 @@ Ox.List = function(options, self) {
// fixme: optimize: send non-selected ids if more than half of the items are selected // fixme: optimize: send non-selected ids if more than half of the items are selected
if (self.options.selected.length /*&& ids.length < self.listLength*/) { if (self.options.selected.length /*&& ids.length < self.listLength*/) {
/*Ox.print('-------- request', { /*Ox.print('-------- request', {
ids: ids, positions: ids,
sort: self.options.sort sort: self.options.sort
});*/ });*/
self.requests.push(self.options.items({ self.requests.push(self.options.items({
ids: self.options.selected, positions: self.options.selected,
sort: self.options.sort sort: self.options.sort
}, function(result) { }, function(result) {
getPositionsCallback(result, callback); getPositionsCallback(result, callback);
@ -586,7 +586,7 @@ Ox.List = function(options, self) {
var pos = 0; var pos = 0;
if (result) { if (result) {
$.extend(self, { $.extend(self, {
ids: {}, positions: {},
selected: [] selected: []
}); });
Ox.forEach(result.data.positions, function(pos, id) { Ox.forEach(result.data.positions, function(pos, id) {
@ -1109,7 +1109,7 @@ Ox.List = function(options, self) {
} else { } else {
// async and id not in current view // async and id not in current view
self.options.items({ self.options.items({
ids: [id], positions: [id],
sort: self.options.sort sort: self.options.sort
}, function(results) { }, function(results) {
pos = results.data.positions[id]; pos = results.data.positions[id];

View file

@ -97,7 +97,7 @@ Ox.ListMap = function(options, self) {
if (!Ox.getCountryByGeoname(names[names.length - 1])) { if (!Ox.getCountryByGeoname(names[names.length - 1])) {
names.push('~'); names.push('~');
} }
return names.reverse().join(', ') return names.reverse().join(', ');
}, },
operator: '+', operator: '+',
title: 'Geoname', title: 'Geoname',