diff options
Diffstat (limited to 'install/ui/dns.js')
-rw-r--r-- | install/ui/dns.js | 34 |
1 files changed, 18 insertions, 16 deletions
diff --git a/install/ui/dns.js b/install/ui/dns.js index e9505dc8..5f8a0d12 100644 --- a/install/ui/dns.js +++ b/install/ui/dns.js @@ -29,16 +29,17 @@ IPA.dns.zone_entity = function(spec) { var that = IPA.entity(spec); - if (!IPA.dns_enabled) { - var except = { - expected: true - }; - throw except; - } + that.init = function() { + + if (!IPA.dns_enabled) { + throw { + expected: true + }; + } - that.init = function(params) { + that.entity_init(); - params.builder.facet_groups([ 'dnsrecord', 'settings' ]). + that.builder.facet_groups([ 'dnsrecord', 'settings' ]). search_facet({ title: IPA.metadata.objects.dnszone.label, columns: [ 'idnsname' ] @@ -483,16 +484,17 @@ IPA.dns.record_entity = function(spec) { var that = IPA.entity(spec); - if (!IPA.dns_enabled) { - var except = { - expected: true - }; - throw except; - } + that.init = function() { + + if (!IPA.dns_enabled) { + throw { + expected: true + }; + } - that.init = function(params) { + that.entity_init(); - params.builder.containing_entity('dnszone'). + that.builder.containing_entity('dnszone'). details_facet({ post_update_hook:function(data){ var result = data.result.result; |