summaryrefslogtreecommitdiffstats
path: root/install/ui/host.js
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2011-07-18 11:42:22 -0500
committerAdam Young <ayoung@redhat.com>2011-07-18 16:48:02 -0400
commit538c7a7eb82954f144f9f823c4fecc170c113c7c (patch)
tree99528dc7abb92c3a2bf030889196876727396dc5 /install/ui/host.js
parent571274e978434a7b5e17100076172233e7320855 (diff)
downloadfreeipa-538c7a7eb82954f144f9f823c4fecc170c113c7c.tar.gz
freeipa-538c7a7eb82954f144f9f823c4fecc170c113c7c.tar.xz
freeipa-538c7a7eb82954f144f9f823c4fecc170c113c7c.zip
Removed reverse zones from host adder dialog.
The host adder dialog has been modified to specify the new flag for retrieving the forward zones only. Ticket #1458
Diffstat (limited to 'install/ui/host.js')
-rw-r--r--install/ui/host.js25
1 files changed, 22 insertions, 3 deletions
diff --git a/install/ui/host.js b/install/ui/host.js
index e9adcd4f7..14f16d93d 100644
--- a/install/ui/host.js
+++ b/install/ui/host.js
@@ -106,10 +106,8 @@ IPA.entity_factories.host = function () {
height: 250,
fields:[
{
- factory: IPA.entity_select_widget,
+ factory: IPA.dnszone_select_widget,
name: 'fqdn',
- other_entity: 'dnszone',
- other_field: 'idnsname',
label: IPA.messages.objects.service.host,
editable: true,
undo: false
@@ -127,6 +125,27 @@ IPA.entity_factories.host = function () {
build();
};
+IPA.dnszone_select_widget = function(spec) {
+
+ spec = spec || {};
+ spec.other_entity = 'dnszone';
+ spec.other_field = 'idnsname';
+
+ var that = IPA.entity_select_widget(spec);
+
+ that.create_search_command = function() {
+ return IPA.command({
+ entity: that.other_entity,
+ method: 'find',
+ args: [that.filter.val()],
+ options: {
+ forward_only: true
+ }
+ });
+ };
+
+ return that;
+};
IPA.host_dnsrecord_entity_link_widget = function(spec){
var that = IPA.entity_link_widget(spec);