remove unneeded div wrapper for list items
This commit is contained in:
parent
b4c684e366
commit
5405f99423
1 changed files with 10 additions and 5 deletions
|
@ -2694,13 +2694,18 @@ requires
|
||||||
data: {},
|
data: {},
|
||||||
pos: 0
|
pos: 0
|
||||||
})
|
})
|
||||||
.options(options || {})
|
.options(options || {});
|
||||||
|
|
||||||
$.each(self.options.data, function(k, v) {
|
$.each(self.options.data, function(k, v) {
|
||||||
self.options.data[k] = $.isArray(v) ? v.join(", ") : 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;
|
return that;
|
||||||
|
|
||||||
|
@ -2848,8 +2853,7 @@ requires
|
||||||
.css({
|
.css({
|
||||||
width: Ox.sum(self.columnWidths) + "px"
|
width: Ox.sum(self.columnWidths) + "px"
|
||||||
})
|
})
|
||||||
.data("pos", pos)
|
.data("pos", pos);
|
||||||
.click(function() {});
|
|
||||||
$.each(self.visibleColumns, function(i, v) {
|
$.each(self.visibleColumns, function(i, v) {
|
||||||
var $cell = $("<div>")
|
var $cell = $("<div>")
|
||||||
.addClass("OxCell OxColumn" + Ox.toTitleCase(v.id))
|
.addClass("OxCell OxColumn" + Ox.toTitleCase(v.id))
|
||||||
|
@ -2921,12 +2925,13 @@ requires
|
||||||
that.$titles[pos].toggleClass("OxSelected");
|
that.$titles[pos].toggleClass("OxSelected");
|
||||||
that.$titles[pos].next().toggleClass("OxSelected");
|
that.$titles[pos].next().toggleClass("OxSelected");
|
||||||
that.$titles[pos].next().next().children().eq(0).toggleClass("OxSelected");
|
that.$titles[pos].next().next().children().eq(0).toggleClass("OxSelected");
|
||||||
|
/*
|
||||||
that.$titles[pos].css({
|
that.$titles[pos].css({
|
||||||
width: (
|
width: (
|
||||||
that.$titles[pos].width() + pos == self.selectedColumn ? -16 : 16
|
that.$titles[pos].width() + pos == self.selectedColumn ? -16 : 16
|
||||||
) + "px"
|
) + "px"
|
||||||
});
|
});
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
that.sort = function(key, operator) {
|
that.sort = function(key, operator) {
|
||||||
|
|
Loading…
Reference in a new issue