Permalink
Browse files

correcting the custom_genrator line 610-611

  • Loading branch information...
1 parent aaf3348 commit c0226d096aa1f7a67def5dfd5b17d1d8335bb21a pichetp committed Jun 11, 2007
Showing with 2 additions and 2 deletions.
  1. +2 −2 question/type/calculated/questiontype.php
View
4 question/type/calculated/questiontype.php
@@ -607,8 +607,8 @@ function custom_generator_tools($datasetdef) {
? 'decimals'
: 'significantfigures'), 'quiz', $i);
}
- return '<input type="submit" onclick="'
- . "getElementById('addform').regenerateddefid.value='$defid'; return true;"
+ return '<input type="submit" onClick="'
+ . "document.addform.regenerateddefid.value='$defid'; return true;"
.'" value="'. get_string('generatevalue', 'quiz') . '"/><br/>'
. '<input type="text" size="3" name="calcmin[]" '
. " value=\"$regs[2]\"/> &amp; <input name=\"calcmax[]\" "

0 comments on commit c0226d0

Please sign in to comment.