Fix a bug where the 008 field got replaced if you
inadvertantly clicked in the field and it wasn't empty. This patch prevents the field from being replaced unless it's empty.
This commit is contained in:
parent
4c4f815a34
commit
82076c3d39
1 changed files with 6 additions and 1 deletions
|
@ -51,7 +51,12 @@ sub plugin_javascript {
|
|||
//<![CDATA[
|
||||
|
||||
function Focus$function_name(subfield_managed) {
|
||||
document.getElementById(\"$field_number\").value='$dateentered' + 't xxu||||| |||| 00| 0 eng d';
|
||||
|
||||
if ( document.getElementById(\"$field_number\").value ) {
|
||||
}
|
||||
else {
|
||||
document.getElementById(\"$field_number\").value='$dateentered' + 't xxu||||| |||| 00| 0 eng d';
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue