Issue #1210: Add legend to the pedigrees on the patient page: javascript part (save current colors together with pedigree)