From 821987fe674d2685809d6150316b3a99bda37b6a Mon Sep 17 00:00:00 2001 From: Adam Young Date: Tue, 9 Nov 2010 20:04:49 -0500 Subject: layout Closer to the layout from the spec The facets have been moved to the action panel, to the left of the page the facets are now rendered in an area of the screen with a client class --- install/static/associate.js | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) (limited to 'install/static/associate.js') diff --git a/install/static/associate.js b/install/static/associate.js index be6747a3..ef3a72c1 100644 --- a/install/static/associate.js +++ b/install/static/associate.js @@ -407,32 +407,33 @@ function ipa_association_facet(spec) { }; that.create = function(container) { - that.setup_views(container); - }; - - that.setup = function(container, unspecified) { - that.pkey = $.bbq.getState(that.entity_name + '-pkey', true) || ''; - that.other_entity = $.bbq.getState(that.entity_name + '-enroll', true) || ''; + that.other_entity = + $.bbq.getState(that.entity_name + '-enroll', true) || ''; //TODO I18N var header_message = that.other_entity + '(s) enrolled in ' + that.entity_name + ' ' + that.pkey; - container.append( $('

',{ html: header_message }) ); $('
', { - 'id': that.entity_name+'-'+that.other_entity + 'id': that.entity_name+'-'+that.other_entity, + html: $('

',{ html: header_message }) }).appendTo(container); - - var table = ipa_association_widget({ + that.table = ipa_association_widget({ 'id': that.entity_name+'-'+that.other_entity, - 'name': that.other_entity, 'label': IPA.metadata[that.other_entity].label, - 'entity_name': that.entity_name, 'other_entity': that.other_entity + 'name': that.other_entity, + 'label': IPA.metadata[that.other_entity].label, + 'entity_name': that.entity_name, + 'other_entity': that.other_entity }); - table.create(container); - table.setup(container); - table.refresh(container); + that.table.create(container); + + }; + + that.setup = function(container, unspecified) { + that.table.setup(container); + that.table.refresh(container); }; return that; -- cgit