From 56300ab2db2a99f1d2c557aeb4b88fc184a5dc45 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Wed, 1 Feb 2012 17:29:15 +0000 Subject: [PATCH] undefined places are now inline --- source/Ox.UI/js/Map/Ox.ListMap.js | 57 +------------------------------ 1 file changed, 1 insertion(+), 56 deletions(-) diff --git a/source/Ox.UI/js/Map/Ox.ListMap.js b/source/Ox.UI/js/Map/Ox.ListMap.js index 6ec9ae8c..39fa9b7a 100644 --- a/source/Ox.UI/js/Map/Ox.ListMap.js +++ b/source/Ox.UI/js/Map/Ox.ListMap.js @@ -10,7 +10,6 @@ Ox.ListMap ListMap object options Options object height Height in px labels If true, show labels - names Array or names (undefined places), or function places Array of places, or function that returns places selected Selected places width Width in px @@ -27,7 +26,6 @@ Ox.ListMap = function(options, self) { getMatches: null, height: 256, labels: false, - names: null, pageLength: 100, places: null, removePlace: null, @@ -222,59 +220,6 @@ Ox.ListMap = function(options, self) { size: 24 }); - if (self.options.names) { - - self.$listSelect = Ox.Select({ - items: [ - {id: 'places', title: 'Show Places'}, - {id: 'names', title: 'Show Names'} - ], - max: 1, - min: 1, - style: 'symbol', - title: 'set', - type: 'image', - value: 'places' - }) - .css({float: 'left', margin: '4px 0 4px 4px'}) - .bindEvent({ - change: toggleList - }) - .appendTo(self.$listToolbar); - - self.$namesList = Ox.TextList({ - columns: [ - { - id: 'name', - operator: '+', - title: 'Name', - visible: true, - width: 256 - }, - { - align: 'right', - id: 'matches', - operator: '-', - title: 'Matches', - visible: true, - width: 64, - } - ], - columnsVisible: true, - items: [], - max: 1, - min: 0, - scrollbarVisible: true, - sort: [{key: 'name', operator: '+'}] - }) - .bindEvent({ - select: function(data) { - - } - }); - - } - self.$findElement = Ox.FormElementGroup({ elements: [ self.$findSelect = Ox.Select({ @@ -297,7 +242,7 @@ Ox.ListMap = function(options, self) { self.$findInput = Ox.Input({ clear: true, placeholder: 'Find in List', - width: self.options.names ? 214 : 234 + width: 234 }) .bindEvent({ submit: function(data) {