Merge pull request #112 from hiromi2424/2.0_html_coverage_reporter_javascript_error

2.0 html coverage reporter javascript error
This commit is contained in:
José Lorenzo Rodríguez 2011-06-02 19:18:51 -07:00
commit 1b97846ad9

View file

@ -138,11 +138,11 @@ HTML;
public function coverageScript() {
return <<<HTML
<script type="text/javascript">
public function coverage_show_hide(selector) {
function coverage_show_hide(selector) {
var element = document.getElementById(selector);
element.style.display = (element.style.display == 'none') ? '' : 'none';
}
public function coverage_toggle_all () {
function coverage_toggle_all () {
var divs = document.querySelectorAll('div.coverage-container');
var i = divs.length;
while (i--) {