mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +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
|
@ -714,7 +714,7 @@ function form_table($nextstage = WELCOME, $formaction = "install.php") {
|
|||
if ($nextstage != DOWNLOADLANG) {
|
||||
$needtoopenform = false;
|
||||
?>
|
||||
<form name="installform" method="post" action="<?php echo $formaction ?>">
|
||||
<form id="installform" method="post" action="<?php echo $formaction ?>">
|
||||
<input type="hidden" name="stage" value="<?php echo $nextstage ?>" />
|
||||
|
||||
<?php
|
||||
|
@ -916,7 +916,7 @@ function form_table($nextstage = WELCOME, $formaction = "install.php") {
|
|||
<?php
|
||||
if ($needtoopenform) {
|
||||
?>
|
||||
<form name="installform" method="post" action="<?php echo $formaction ?>">
|
||||
<form id="installform" method="post" action="<?php echo $formaction ?>">
|
||||
<input type="hidden" name="stage" value="<?php echo $nextstage ?>" />
|
||||
<?php
|
||||
}
|
||||
|
@ -1197,8 +1197,8 @@ function database_js() {
|
|||
function toggledbinfo() {
|
||||
//Calculate selected value
|
||||
var showid = 'mysql';
|
||||
if (document.installform.dbtype.value) {
|
||||
showid = document.installform.dbtype.value;
|
||||
if (getElementById('installform').dbtype.value) {
|
||||
showid = getElementById('installform').dbtype.value;
|
||||
}
|
||||
if (document.getElementById) {
|
||||
//Hide all the divs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue