validate link only if value is non empty

This commit is contained in:
Anand Doshi 2012-07-31 19:37:35 +05:30
parent e2e8d010b3
commit 89901c047b

View file

@ -750,7 +750,8 @@ LinkField.prototype.set_input_value = function(val) {
return;
}
me.validate_link(val, from_selector);
// validate only if val is not empty
if (val) { me.validate_link(val, from_selector); }
}
LinkField.prototype.validate_link = function(val, from_selector) {