]> git.mjollnir.org Git - moodle.git/commitdiff
Typo in javascript .... selectedindex should selectedIndex !
authormoodler <moodler>
Mon, 5 May 2003 07:44:53 +0000 (07:44 +0000)
committermoodler <moodler>
Mon, 5 May 2003 07:44:53 +0000 (07:44 +0000)
lib/weblib.php

index 2dc90d3763f6941bc840b973f2e6fa11e4502e3f..59b8ae476e05faea014aa4b43a34bb8ba32a1179 100644 (file)
@@ -324,7 +324,7 @@ function popup_form ($common, $options, $formname, $selected="", $nothing="choos
     }
 
     $startoutput = "<form target=\"{$CFG->framename}\" name=$formname>";
-    $output = "<select name=popup onchange=\"top.location=document.$formname.popup.options[document.$formname.popup.selectedindex].value\">\n";
+    $output = "<select name=popup onchange=\"top.location=document.$formname.popup.options[document.$formname.popup.selectedIndex].value\">\n";
 
     if ($nothing != "") {
         $output .= "   <option value=\"javascript:void(0)\">$nothing</option>\n";