diff options
author | Adam Young <ayoung@redhat.com> | 2010-11-09 20:04:49 -0500 |
---|---|---|
committer | Endi Sukma Dewata <edewata@redhat.com> | 2010-11-14 01:53:41 -0500 |
commit | 821987fe674d2685809d6150316b3a99bda37b6a (patch) | |
tree | 105cf5c77a3752533b1a730447b5561c34cb92b6 /install/static/associate.js | |
parent | d658b0de5c52d5b9e2679f05f8c0b15237c63c15 (diff) | |
download | freeipa-821987fe674d2685809d6150316b3a99bda37b6a.tar.gz freeipa-821987fe674d2685809d6150316b3a99bda37b6a.tar.xz freeipa-821987fe674d2685809d6150316b3a99bda37b6a.zip |
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
Diffstat (limited to 'install/static/associate.js')
-rw-r--r-- | install/static/associate.js | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/install/static/associate.js b/install/static/associate.js index be6747a32..ef3a72c1e 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( $('<h2/>',{ html: header_message }) ); $('<div/>', { - 'id': that.entity_name+'-'+that.other_entity + 'id': that.entity_name+'-'+that.other_entity, + html: $('<h2/>',{ 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; |