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:
Joshua Ferraro 2008-07-21 19:38:52 -05:00
parent 4c4f815a34
commit 82076c3d39

View file

@ -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;
}