summaryrefslogtreecommitdiffstats
path: root/install/ui/dns.js
diff options
context:
space:
mode:
authorPetr Voborník <pvoborni@redhat.com>2012-02-22 17:12:11 +0100
committerPetr Vobornik <pvoborni@redhat.com>2012-02-29 12:59:13 +0100
commit52208e8b40f98e7a7cc0c91b15803003740efa92 (patch)
treebf513a356f7f440bfb5c9cf12303a974b0a405af /install/ui/dns.js
parent25bda1e860a55faa7975cf37b69a74f2c138d309 (diff)
downloadfreeipa.git-52208e8b40f98e7a7cc0c91b15803003740efa92.tar.gz
freeipa.git-52208e8b40f98e7a7cc0c91b15803003740efa92.tar.xz
freeipa.git-52208e8b40f98e7a7cc0c91b15803003740efa92.zip
Moved is_empty method from field to IPA object
is_empty method represents IPA UI standard of evaluating whether value is empty. Therefore is should be placed in IPA object instead of IPA.field to allow reuse in different locations. https://fedorahosted.org/freeipa/ticket/2351
Diffstat (limited to 'install/ui/dns.js')
-rw-r--r--install/ui/dns.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/install/ui/dns.js b/install/ui/dns.js
index c849eeca..8125f9d3 100644
--- a/install/ui/dns.js
+++ b/install/ui/dns.js
@@ -1845,8 +1845,8 @@ IPA.dns.netaddr_field = function(spec) {
var values = that.field_save();
//check for empty value: null, [''], '', []
- var orig_empty = that.is_empty(that.values);
- var new_empty= that.is_empty(values);
+ var orig_empty = IPA.is_empty(that.values);
+ var new_empty= IPA.is_empty(values);
if (orig_empty && new_empty) return false;
if (orig_empty != new_empty) return true;