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
|
@ -60,7 +60,7 @@ $text_source_options = array(
|
|||
//]]>
|
||||
</script>
|
||||
<center>
|
||||
<form name="form" method="post" action="mod.php">
|
||||
<form id="form" method="post" action="mod.php">
|
||||
<table cellpadding="5">
|
||||
<tr valign="top">
|
||||
<td align="right"><b><?php print_string("name") ?>:</b></td>
|
||||
|
@ -371,7 +371,7 @@ $text_source_options = array(
|
|||
// override the standard Moodle "setfocus" function,
|
||||
// which gives a js error if the "name" field is hidden
|
||||
function setfocus() {
|
||||
var f = document.form;
|
||||
var f = getElementById('form');
|
||||
if (f) {
|
||||
if (canfocus(f, 'namesource')) {
|
||||
f.namesource.focus();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue