leader length checking bugfix : 25 and not 24

This commit is contained in:
tipaul 2007-07-02 09:51:28 +00:00
parent d132e60e33
commit 967542e325
1 changed files with 2 additions and 2 deletions

View File

@ -47,8 +47,8 @@ return 1;
}
function Blur$function_name(subfield_managed) {
if (document.forms['f'].field_value[subfield_managed].value.length != 24) {
alert('leader has an incorrect size: ' + document.forms['f'].field_value[subfield_managed].value.length + ' instead of 24 chars');
if (document.forms['f'].field_value[subfield_managed].value.length != 25) {
alert(_('leader has an incorrect size: ' + document.forms['f'].field_value[subfield_managed].value.length + ' instead of 25 chars'));
}
return 1;
}