From e0215421208d853e853f9c7b66add1e145982fbc Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Tue, 22 Nov 2011 17:33:09 +0100 Subject: 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 --- install/ui/dns.js | 75 ++++++++++++++++++++++++++----------------------------- 1 file changed, 35 insertions(+), 40 deletions(-) (limited to 'install/ui/dns.js') diff --git a/install/ui/dns.js b/install/ui/dns.js index 933366c0..af6d5090 100644 --- a/install/ui/dns.js +++ b/install/ui/dns.js @@ -183,52 +183,47 @@ IPA.dnszone_details_facet = function(spec) { var record = {}; that.save(record); - var sections = that.sections.values; - for (var i=0; i').appendTo(table); @@ -315,7 +310,7 @@ IPA.dnszone_name_section = function(spec) { var idnsname_input = $('input', span); - var name_from_ip = that.get_field('name_from_ip'); + var name_from_ip = that.fields.get_field('name_from_ip'); tr = $('').appendTo(table); @@ -380,8 +375,8 @@ IPA.dnszone_name_section = function(spec) { that.save = function(record) { - var idnsname = that.get_field('idnsname'); - var name_from_ip = that.get_field('name_from_ip'); + var idnsname = that.fields.get_field('idnsname'); + var name_from_ip = that.fields.get_field('name_from_ip'); if (idnsname.radio.is(':checked')) { record.idnsname = idnsname.save(); -- cgit