From 0840d0b436f662207602469865142b9061b7ba9b Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Wed, 2 Nov 2011 19:47:19 +0000 Subject: [PATCH] some fixed for text lists with column titles that are images --- source/Ox.UI/js/List/Ox.TextList.js | 26 ++++++++++++++------------ source/Ox.UI/js/Menu/Ox.Menu.js | 9 ++++++--- source/Ox.UI/js/Menu/Ox.MenuItem.js | 4 +++- 3 files changed, 23 insertions(+), 16 deletions(-) diff --git a/source/Ox.UI/js/List/Ox.TextList.js b/source/Ox.UI/js/List/Ox.TextList.js index d7e2b9af..4d9c557f 100644 --- a/source/Ox.UI/js/List/Ox.TextList.js +++ b/source/Ox.UI/js/List/Ox.TextList.js @@ -348,17 +348,19 @@ Ox.TextList = function(options, self) { }) .html(column.title) .appendTo(self.$heads[i]); - self.$orderButtons[i] = Ox.Button({ - style: 'symbol', - title: column.operator == '+' ? 'up' : 'down', - type: 'image' - }) - .addClass('OxOrder') - .css({marginTop: (column.operator == '+' ? 1 : -1) + 'px'}) - .click(function() { - $(this).parent().trigger('click'); - }) - .appendTo(self.$heads[i]); + if (column.operator) { + self.$orderButtons[i] = Ox.Button({ + style: 'symbol', + title: column.operator == '+' ? 'up' : 'down', + type: 'image' + }) + .addClass('OxOrder') + .css({marginTop: (column.operator == '+' ? 1 : -1) + 'px'}) + .click(function() { + $(this).parent().trigger('click'); + }) + .appendTo(self.$heads[i]); + } $resize = Ox.Element() .addClass('OxResize') .appendTo(that.$head.$content.$element); @@ -366,7 +368,7 @@ Ox.TextList = function(options, self) { $('