diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2011-11-22 17:33:09 +0100 |
---|---|---|
committer | Endi S. Dewata <edewata@redhat.com> | 2011-12-05 16:00:50 +0000 |
commit | e0215421208d853e853f9c7b66add1e145982fbc (patch) | |
tree | f2d9d495dbe4f839f5b65a3348c0e11f8ac25d9a /install/ui/rule.js | |
parent | 6cdf09812dd13531acb29f1413de87ce7cd5218f (diff) | |
download | freeipa.git-e0215421208d853e853f9c7b66add1e145982fbc.tar.gz freeipa.git-e0215421208d853e853f9c7b66add1e145982fbc.tar.xz freeipa.git-e0215421208d853e853f9c7b66add1e145982fbc.zip |
Removing sections as special type of object
Sections are changed into pure widget objects. Introduced IPA.composite_widget, basic widget for widget nesting (it's using IPA.widget_container). It's base class for section widgets.
TODO: change old custom sections into custom fields and widgets.
Note: usage of section in HBAC and SUDO is kept - whole logic will be removed in #1515 patch.
https://fedorahosted.org/freeipa/ticket/2040
Diffstat (limited to 'install/ui/rule.js')
-rw-r--r-- | install/ui/rule.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/install/ui/rule.js b/install/ui/rule.js index 2ccdecd4..9f8e2318 100644 --- a/install/ui/rule.js +++ b/install/ui/rule.js @@ -37,7 +37,7 @@ IPA.rule_details_section = function(spec) { that.container = container; - var field = that.get_field(that.field_name); + var field = that.fields.get_field(that.field_name); var metadata = IPA.get_entity_param(that.entity.name, that.field_name); container.append(metadata.doc+':'); @@ -55,13 +55,13 @@ IPA.rule_details_section = function(spec) { for (var i=0; i<that.tables.length; i++) { var table = that.tables[i]; - var field = that.get_field(table.field_name); + var field = that.fields.get_field(table.field_name); field.set_enabled(enabled); } } if (that.options.length) { - var category = that.get_field(that.field_name); + var category = that.fields.get_field(that.field_name); category.options=that.options; category.reset = function() { category.widget_reset(); @@ -95,7 +95,7 @@ IPA.rule_details_section = function(spec) { 'class': 'field' }).appendTo(span); - field = that.get_field(table.field_name); + field = that.fields.get_field(table.field_name); field.create(table_span); } |