summaryrefslogtreecommitdiffstats
path: root/install/ui/src/freeipa/host.js
diff options
context:
space:
mode:
Diffstat (limited to 'install/ui/src/freeipa/host.js')
-rw-r--r--install/ui/src/freeipa/host.js25
1 files changed, 13 insertions, 12 deletions
diff --git a/install/ui/src/freeipa/host.js b/install/ui/src/freeipa/host.js
index 923c82c65..8b6692282 100644
--- a/install/ui/src/freeipa/host.js
+++ b/install/ui/src/freeipa/host.js
@@ -357,6 +357,19 @@ IPA.host_fqdn_widget = function(spec) {
});
};
+ that.save = function() {
+
+ var hw = that.widgets.get_widget('hostname');
+ var dw = that.widgets.get_widget('dnszone');
+
+ var hostname = hw.save()[0];
+ var dnszone = dw.save()[0];
+
+ var fqdn = hostname && dnszone ? [ hostname+'.'+dnszone ] : [];
+ return fqdn;
+
+ };
+
return that;
};
@@ -400,18 +413,6 @@ IPA.host_fqdn_field = function(spec) {
}
};
- that.save = function(record) {
-
- if(!record) record = {};
-
- var hostname = that.hostname_widget.save()[0];
- var dnszone = that.dns_zone_widget.save()[0];
-
- record.fqdn = hostname && dnszone ? [ hostname+'.'+dnszone ] : [];
-
- return record.fqdn;
- };
-
that.reset = function() {
that.hostname_widget.update([]);