From f821d786df2b8695308a6d944191c3cd7d17d512 Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Thu, 17 Oct 2013 17:51:32 +0200 Subject: Use Fluid layout be default https://fedorahosted.org/freeipa/ticket/3904 --- install/ui/src/freeipa/aci.js | 12 +++++----- install/ui/src/freeipa/automember.js | 2 +- install/ui/src/freeipa/details.js | 43 +----------------------------------- install/ui/src/freeipa/dialog.js | 2 +- install/ui/src/freeipa/dns.js | 10 ++++----- install/ui/src/freeipa/hbac.js | 2 +- install/ui/src/freeipa/netgroup.js | 2 +- install/ui/src/freeipa/selinux.js | 2 +- install/ui/src/freeipa/sudo.js | 2 +- install/ui/src/freeipa/trust.js | 4 ++-- install/ui/src/freeipa/widget.js | 2 +- 11 files changed, 21 insertions(+), 62 deletions(-) (limited to 'install/ui/src') diff --git a/install/ui/src/freeipa/aci.js b/install/ui/src/freeipa/aci.js index b848073b..ce4eb0ef 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 c18f619e..703b4a17 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 687926c8..596dc1ac 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