mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-8062 Remove name attribute from <form> and related javascript code cleanup (tested with FF, IE, Konq and Opera)
This commit is contained in:
parent
ee7f231d08
commit
d2ce367fb9
38 changed files with 135 additions and 125 deletions
|
@ -163,7 +163,7 @@ function checkform() {
|
|||
|
||||
var error=false;
|
||||
|
||||
with (document.form) {
|
||||
with (getElementById('form')) {
|
||||
<?php
|
||||
if (!empty($checklist)) {
|
||||
foreach ($checklist as $question => $default) {
|
||||
|
@ -176,7 +176,7 @@ function checkform() {
|
|||
if (error) {
|
||||
alert("<?php print_string("questionsnotanswered", "survey") ?>");
|
||||
} else {
|
||||
document.form.submit();
|
||||
getElementById('form').submit();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue