From 4dc02f48dc91b296ae76b12ed12893ac20441687 Mon Sep 17 00:00:00 2001 From: Rolux Date: Tue, 29 Jun 2010 16:00:18 +0200 Subject: [PATCH] remove unneeded div wrapper for list items --- build/js/ox.ui.js | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/build/js/ox.ui.js b/build/js/ox.ui.js index 2ae3f6e..924799b 100644 --- a/build/js/ox.ui.js +++ b/build/js/ox.ui.js @@ -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 = $("
") .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) {