validate link only if value is non empty
This commit is contained in:
parent
e2e8d010b3
commit
89901c047b
1 changed files with 2 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue