redmine_embedded/assets/javascripts/rcov.js

19 lines
362 B
JavaScript
Raw Normal View History

2012-07-23 14:30:42 +04:00
function toggleCode( id ) {
if ( document.getElementById )
elem = document.getElementById( id );
else if ( document.all )
elem = eval( "document.all." + id );
else
return false;
elemStyle = elem.style;
if ( elemStyle.display != "block" ) {
elemStyle.display = "block"
} else {
elemStyle.display = "none"
}
return true;
}