From 503470916c296db419e2cbeb096fc2b4173574ba Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Mon, 8 Aug 2011 17:24:05 -0500 Subject: Fixed DNS zone adder dialog. The DNS zone adder dialog has been modified to use radio buttons to select whether to enter a zone name or a reverse zone IP network. Ticket #1575 --- install/ui/dialog.js | 1 + install/ui/dns.js | 224 ++++++++++++++++++++++++++++++++++++++++++--------- 2 files changed, 187 insertions(+), 38 deletions(-) (limited to 'install') diff --git a/install/ui/dialog.js b/install/ui/dialog.js index 0ec84a786..5d0ce14fa 100644 --- a/install/ui/dialog.js +++ b/install/ui/dialog.js @@ -259,6 +259,7 @@ IPA.dialog = function(spec) { that.dialog_create = that.create; that.dialog_open = that.open; that.dialog_close = that.close; + that.dialog_save = that.save; var fields = spec.fields || []; for (var i=0; i').appendTo(that.container); - if (field.name == 'idnsname') { + var field = that.get_field('idnsname'); - idnsname = field.save()[0]; + var tr = $('').appendTo(table); - } else if (field.name == 'name_from_ip') { + var td = $('', { + title: field.label + }).appendTo(tr); - name_from_ip = field.save()[0]; - if (name_from_ip) { - record.name_from_ip = idnsname; - } else { - record.idnsname = idnsname; - } + var label = $('