ACK Looks good. ----- Original Message ----- > Kyle noticed that the DNS page was off. This fixes it. > > _______________________________________________ > Freeipa-devel mailing list > Freeipa-devel@redhat.com > https://www.redhat.com/mailman/listinfo/freeipa-devel
From 6a7ca9e8400c359fa50f1ecca62a34a7cdf3abd7 Mon Sep 17 00:00:00 2001 From: Adam Young <ayo...@redhat.com> Date: Tue, 25 Jan 2011 21:15:05 -0500 Subject: [PATCH] dns container
the dns records page was adding controls to the wrong tag. This pushes everything down one level, fixing the formatting. --- install/ui/policy.js | 55 +++++++++++++++++++++++++++---------------------- 1 files changed, 30 insertions(+), 25 deletions(-) diff --git a/install/ui/policy.js b/install/ui/policy.js index 208b7c9ec55f82166d876fea250c93a37bf85880..7e9e05eb637047bf344c7748c06698ef3de4004f 100644 --- a/install/ui/policy.js +++ b/install/ui/policy.js @@ -276,30 +276,22 @@ IPA.records_facet = function (spec){ }; function create(container) { + + container.attr('title', that.entity_name); + + $('<h1/>',{ + html: "<span id='headerpkey' />Records for DNS Zone:" + that.pkey + }).append(IPA.create_network_spinner()). + appendTo(container); + var details = $('<div/>', { 'class': 'content' }).appendTo(container); - } - - function setup(container){ - - that.facet_setup(container); - - that.pkey = $.bbq.getState(that.entity_name + '-pkey', true) || ''; - that.record = $.bbq.getState(that.entity_name + '-record', true) || ''; - - that.container.attr('title', that.entity_name); - - var h2 = $('<h2></h2>',{ - text: "Records for DNS Zone:" + that.pkey - }).appendTo(that.container); - var div = $('<div class="search-controls"></div>'). - appendTo(that.container); + appendTo(details); var control_span =$('<span class="record-filter"></span>').appendTo(div); - control_span.append('Resource'); control_span.append($('<input />',{ type: "text", @@ -311,13 +303,6 @@ IPA.records_facet = function (spec){ create_type_select('dns-record-type-filter',true). appendTo(control_span); - //commented out until data is searchable - //control_span.append('Data'); - //control_span.append($('<input />',{ - // type: "text", - // id: 'dns-record-data-filter', - // name: 'search-' + obj_name + '-filter' - //})); IPA.button({ @@ -349,7 +334,7 @@ IPA.records_facet = function (spec){ var records_results = $('<div/>', { 'class': 'records-results' - }).appendTo(that.container); + }).appendTo(details); var records_table = $('<table/>', { 'class': 'search-table' @@ -373,6 +358,26 @@ IPA.records_facet = function (spec){ tr.append($('<th>Record Type</th>')); tr.append($('<th>Data</th>')); + } + + function setup(container){ + + that.facet_setup(container); + + that.pkey = $.bbq.getState(that.entity_name + '-pkey', true) || ''; + that.record = $.bbq.getState(that.entity_name + '-record', true) || ''; + + + //commented out until data is searchable + //control_span.append('Data'); + //control_span.append($('<input />',{ + // type: "text", + // id: 'dns-record-data-filter', + // name: 'search-' + obj_name + '-filter' + //})); + + + refresh(); } -- 1.7.3.5
_______________________________________________ Freeipa-devel mailing list Freeipa-devel@redhat.com https://www.redhat.com/mailman/listinfo/freeipa-devel