From 52208e8b40f98e7a7cc0c91b15803003740efa92 Mon Sep 17 00:00:00 2001 From: Petr Voborník Date: Wed, 22 Feb 2012 17:12:11 +0100 Subject: 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 --- install/ui/dns.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'install/ui/dns.js') 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; -- cgit