From 7d72eb291a89f8fef372905df5fbb051f15be1c9 Mon Sep 17 00:00:00 2001 From: Adam Young Date: Tue, 14 Jun 2011 12:34:56 -0400 Subject: dns multiple records show multiple records that share the same dnsname --- install/ui/dns.js | 34 +++++++++++++++++++++------------- 1 file changed, 21 insertions(+), 13 deletions(-) (limited to 'install/ui/dns.js') diff --git a/install/ui/dns.js b/install/ui/dns.js index 55feaa034..1d6b81813 100644 --- a/install/ui/dns.js +++ b/install/ui/dns.js @@ -421,28 +421,33 @@ IPA.records_facet = function(spec) { that.set_title(this.container, title); }; - that.get_record = function(result, index) { - var record = {}; + that.get_records = function(result) { + var idnsname; if (result.idnsname) { - record.idnsname = result.idnsname[0]; + idnsname = result.idnsname[0]; } else { - record.idnsname = result.dn.split(',')[0].split('=')[1]; + idnsname = result.dn.split(',')[0].split('=')[1]; } + var records = []; for (var i=0; i