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/host.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/host.js')
-rw-r--r-- | install/ui/host.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/install/ui/host.js b/install/ui/host.js index 345051ec..ed857179 100644 --- a/install/ui/host.js +++ b/install/ui/host.js @@ -197,8 +197,8 @@ IPA.host_fqdn_section = function(spec) { that.create = function(container) { that.container = container; - var hostname = that.get_field('hostname'); - var dnszone = that.get_field('dnszone'); + var hostname = that.fields.get_field('hostname'); + var dnszone = that.fields.get_field('dnszone'); var table = $('<table/>', { 'class': 'fqdn' @@ -268,10 +268,10 @@ IPA.host_fqdn_section = function(spec) { }; that.save = function(record) { - var field = that.get_field('hostname'); + var field = that.fields.get_field('hostname'); var hostname = field.save()[0]; - field = that.get_field('dnszone'); + field = that.fields.get_field('dnszone'); var dnszone = field.save()[0]; record.fqdn = hostname && dnszone ? [ hostname+'.'+dnszone ] : []; @@ -444,8 +444,8 @@ IPA.host_enrollment_section = function(spec) { that.create = function(container) { that.table_section_create(container); - var keytab_field = that.get_field('has_keytab'); - var password_field = that.get_field('has_password'); + var keytab_field = that.fields.get_field('has_keytab'); + var password_field = that.fields.get_field('has_password'); /** * The set_password() in the password field is being customized to |