From 9704adfe44c915de97f416c18bcaeabea2c927ba Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Tue, 7 Jun 2011 20:48:20 -0500 Subject: Fixed resizing issues. The UI has been modified to fix some resizing issues: Previously the height of facet content was roughly calculated using resize(). Now the height can be more accurately defined in CSS. Previously the UI width was fixed. The HTML layout and background images have been modified to support horizontal expansion if needed. --- install/ui/search.js | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) (limited to 'install/ui/search.js') diff --git a/install/ui/search.js b/install/ui/search.js index e4c86682..cb80467c 100644 --- a/install/ui/search.js +++ b/install/ui/search.js @@ -24,10 +24,6 @@ /* REQUIRES: ipa.js */ -/* For scrolling tables, we want to make sure we leave enough room for the - header and footer. */ -IPA.reserved_screen_size = 400; - IPA.search_facet = function(spec) { spec = spec || {}; @@ -40,8 +36,7 @@ IPA.search_facet = function(spec) { that.search_all = spec.search_all || false; - - function get_values (){ + function get_values() { return that.table.get_selected_values(); } @@ -76,12 +71,13 @@ IPA.search_facet = function(spec) { } that.table = IPA.table_widget({ - scrollable: true, id: entity.name+'-search', + 'class': 'content-table', name: 'search', label: IPA.metadata.objects[entity.name].label, entity_name: entity.name, - search_all: that.search_all + search_all: that.search_all, + scrollable: true }); var columns = that.columns.values; @@ -158,14 +154,8 @@ IPA.search_facet = function(spec) { that.create_content = function(container) { - var span = $('', { 'name': 'search' }).appendTo(container); - - that.table.create(span); - that.table.setup(span); - }; - - that.setup = function(container) { - that.facet_setup(container); + that.table.create(container); + that.table.setup(container); }; that.show = function() { -- cgit