remove unneeded div wrapper for list items

This commit is contained in:
Rolux 2010-06-29 16:00:18 +02:00
parent 861de82313
commit 4dc02f48dc

View File

@ -2694,13 +2694,18 @@ requires
data: {},
pos: 0
})
.options(options || {})
.options(options || {});
$.each(self.options.data, function(k, v) {
self.options.data[k] = $.isArray(v) ? v.join(", ") : v;
});
that.append(self.options.construct(self.options.data, self.options.pos));
that.$element = self.options.construct(self.options.data, self.options.pos);
/*
$.each(self.options.construct(self.options.data, self.options.pos).children(), function(i, v) {
that.append(v);
});
*/
return that;
@ -2848,8 +2853,7 @@ requires
.css({
width: Ox.sum(self.columnWidths) + "px"
})
.data("pos", pos)
.click(function() {});
.data("pos", pos);
$.each(self.visibleColumns, function(i, v) {
var $cell = $("<div>")
.addClass("OxCell OxColumn" + Ox.toTitleCase(v.id))
@ -2921,12 +2925,13 @@ requires
that.$titles[pos].toggleClass("OxSelected");
that.$titles[pos].next().toggleClass("OxSelected");
that.$titles[pos].next().next().children().eq(0).toggleClass("OxSelected");
/*
that.$titles[pos].css({
width: (
that.$titles[pos].width() + pos == self.selectedColumn ? -16 : 16
) + "px"
});
*/
}
that.sort = function(key, operator) {