Commit de4242fe authored by Laurent Gil's avatar Laurent Gil
Browse files

Fixed the fix when the html page is included into the ensembl website

parent 7667e1d2
......@@ -135,13 +135,15 @@ my $html_header = qq{
div = document.getElementById('div_'+param);
alink = document.getElementById('a_'+param);
if (expand_flag.value=='0') {
div.style.display='inline';
alink.innerHTML='Hide';
}
else {
div.style.display='none';
alink.innerHTML='Show';
if (div && alink) {
if (expand_flag.value=='0') {
div.style.display='inline';
alink.innerHTML='Hide';
}
else {
div.style.display='none';
alink.innerHTML='Show';
}
}
}
if (expand_flag.value=='0') {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment