diff --git a/install/ui/src/freeipa/aci.js b/install/ui/src/freeipa/aci.js index b848073b0..ce4eb0efa 100644 --- a/install/ui/src/freeipa/aci.js +++ b/install/ui/src/freeipa/aci.js @@ -116,7 +116,7 @@ return { ], widgets: [ { - $type: 'details_table_section', + $type: 'details_section', name: 'identity', label: '@i18n:objects.permission.identity', widgets: [ @@ -124,7 +124,7 @@ return { ] }, { - $type: 'details_table_section', + $type: 'details_section', name: 'rights', label: '@i18n:objects.permission.rights', widgets: [ @@ -136,7 +136,7 @@ return { }, { $type: 'permission_target', - container_factory: IPA.details_table_section, + container_factory: IPA.details_section, label: '@i18n:objects.permission.target', name: 'target', show_target: false @@ -216,7 +216,7 @@ return { ], widgets: [ { - $type: 'details_table_section_nc', + $type: 'details_section', name: 'general', widgets: [ 'cn', @@ -646,13 +646,13 @@ IPA.rights_widget = function(spec) { /** * @class IPA.permission_target_widget - * @extends IPA.details_table_section_nc + * @extends IPA.details_section */ IPA.permission_target_widget = function(spec) { spec = spec || {}; - var factory = spec.container_factory || IPA.details_table_section_nc; + var factory = spec.container_factory || IPA.details_section; var that = factory(spec); diff --git a/install/ui/src/freeipa/automember.js b/install/ui/src/freeipa/automember.js index c18f619e5..703b4a173 100644 --- a/install/ui/src/freeipa/automember.js +++ b/install/ui/src/freeipa/automember.js @@ -250,7 +250,7 @@ IPA.automember.rule_details_facet = function(spec) { spec.widgets = [ { - $type: 'details_table_section', + $type: 'details_section', name: 'general', label: '@i18n:details.general', widgets: [ diff --git a/install/ui/src/freeipa/details.js b/install/ui/src/freeipa/details.js index 687926c8c..596dc1ac0 100644 --- a/install/ui/src/freeipa/details.js +++ b/install/ui/src/freeipa/details.js @@ -208,7 +208,7 @@ exp.section_builder = IPA.section_builder = function(spec) { * TODO: should be modified so it can be a class too * @property {IPA.composite_widget} */ - that.section_factory = spec.section_factory || IPA.details_table_section; + that.section_factory = spec.section_factory || IPA.details_section; /** * Field builder @@ -624,47 +624,6 @@ exp.details_facet = IPA.details_facet = function(spec, no_init) { that.facet_create_header(container); that.create_controls(); - - that.expand_button = IPA.action_button({ - name: 'expand_all', - href: 'expand_all', - label: '@i18n:details.expand_all', - 'class': 'right-aligned-facet-controls', - style: 'display: none;', - click: function() { - that.expand_button.css('display', 'none'); - that.collapse_button.css('display', 'inline-block'); - - var widgets = that.widgets.get_widgets(); - for (var i=0; i