]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-7861, fixing javascript
authortoyomoyo <toyomoyo>
Tue, 2 Jan 2007 01:59:49 +0000 (01:59 +0000)
committertoyomoyo <toyomoyo>
Tue, 2 Jan 2007 01:59:49 +0000 (01:59 +0000)
course/groups-edit.html

index d72a22b65062fa31986bec13855c62c9043a2ae4..69cbb4b239551f82a10f42bccd96e383d2b9cd0a 100755 (executable)
@@ -80,10 +80,10 @@ function groupWindow(selectgroup) {
 //]]>
 </script>
 
-        <form name="rolesform1" action="groups.php" method="get">
+        <form id="rolesform1" name="rolesform1" action="groups.php" method="get">
         <input type="hidden" name="id" value="<?php echo $courseid ?>" />
         <div align="center"><?php echo get_string('currentrole', 'role') ?>: 
-            <?php choose_from_menu ($roleoptions, 'roleid', $roleid, '', $script='rolesform1.submit()') ?>
+            <?php choose_from_menu ($roleoptions, 'roleid', $roleid, '', 'document.getElementById(\'rolesform1\').submit()') ?>
         </div></form>
 
   <table cellspacing="0" cellpadding="10" align="center" class="generaltable generalbox">