From cb70784e6fd864132d8e6f97e2a5c7d179ef5c0b Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Wed, 27 Apr 2011 12:17:13 -0500 Subject: Entitlement status. A new facet has been added to show entitlement status and download the registration certificate. --- install/ui/search.js | 33 ++++++++++++++++++++------------- 1 file changed, 20 insertions(+), 13 deletions(-) (limited to 'install/ui/search.js') diff --git a/install/ui/search.js b/install/ui/search.js index cb80467c..5fdaefd5 100644 --- a/install/ui/search.js +++ b/install/ui/search.js @@ -35,6 +35,7 @@ IPA.search_facet = function(spec) { var that = IPA.table_facet(spec); that.search_all = spec.search_all || false; + that.selectable = spec.selectable; function get_values() { return that.table.get_selected_values(); @@ -77,7 +78,8 @@ IPA.search_facet = function(spec) { label: IPA.metadata.objects[entity.name].label, entity_name: entity.name, search_all: that.search_all, - scrollable: true + scrollable: true, + selectable: that.selectable }); var columns = that.columns.values; @@ -175,11 +177,12 @@ IPA.search_facet = function(spec) { var values = that.table.get_selected_values(); - if (values.length === 0) { - that.remove_button.addClass('input_link_disabled'); - - } else { - that.remove_button.removeClass('input_link_disabled'); + if (that.remove_button) { + if (values.length === 0) { + that.remove_button.addClass('input_link_disabled'); + } else { + that.remove_button.removeClass('input_link_disabled'); + } } }; @@ -269,6 +272,16 @@ IPA.search_facet = function(spec) { IPA.nav.push_state(state); }; + that.load = function(result) { + + that.table.empty(); + + for (var i = 0; i