diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2013-10-17 17:51:32 +0200 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2014-01-21 12:04:02 +0100 |
commit | f821d786df2b8695308a6d944191c3cd7d17d512 (patch) | |
tree | 397b0beeeb550330c9152c7bbc1b14af88489627 /install/ui/src/freeipa/details.js | |
parent | ab719d6f3e68ab2525bd0f68f54558a0adbeed85 (diff) | |
download | freeipa.git-f821d786df2b8695308a6d944191c3cd7d17d512.tar.gz freeipa.git-f821d786df2b8695308a6d944191c3cd7d17d512.tar.xz freeipa.git-f821d786df2b8695308a6d944191c3cd7d17d512.zip |
Use Fluid layout be default
https://fedorahosted.org/freeipa/ticket/3904
Diffstat (limited to 'install/ui/src/freeipa/details.js')
-rw-r--r-- | install/ui/src/freeipa/details.js | 43 |
1 files changed, 1 insertions, 42 deletions
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<widgets.length; i++) { - var widget = widgets[i]; - if(widget.toggle) { - widget.toggle(true); - } - } - return false; - } - }).appendTo(that.controls); - - that.collapse_button = IPA.action_button({ - name: 'collapse_all', - href: 'collapse_all', - label: '@i18n:details.collapse_all', - 'class': 'right-aligned-facet-controls', - click: function() { - that.expand_button.css('display', 'inline-block'); - that.collapse_button.css('display', 'none'); - - var widgets = that.widgets.get_widgets(); - for (var i=0; i<widgets.length; i++) { - var widget = widgets[i]; - if(widget.toggle) { - widget.toggle(false); - } - } - return false; - } - }).appendTo(that.controls); }; that.widgets.create_widget_delimiter = function(container) { |