summaryrefslogtreecommitdiffstats
path: root/install/ui/search.js
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2011-06-07 20:48:20 -0500
committerAdam Young <ayoung@redhat.com>2011-06-13 09:23:29 -0400
commit9704adfe44c915de97f416c18bcaeabea2c927ba (patch)
tree92fc1e3eb8d3c4816c88750facedd52511ff7ea9 /install/ui/search.js
parentd2b483cbb3ca15a68115cf32cfaf89572259914e (diff)
downloadfreeipa-9704adfe44c915de97f416c18bcaeabea2c927ba.tar.gz
freeipa-9704adfe44c915de97f416c18bcaeabea2c927ba.tar.xz
freeipa-9704adfe44c915de97f416c18bcaeabea2c927ba.zip
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.
Diffstat (limited to 'install/ui/search.js')
-rw-r--r--install/ui/search.js22
1 files changed, 6 insertions, 16 deletions
diff --git a/install/ui/search.js b/install/ui/search.js
index e4c866826..cb80467cb 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 = $('<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() {