]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-7861 Strict XHTML 1.0 - popup_form() fixes (added div and $formname parameter...
authorskodak <skodak>
Wed, 3 Jan 2007 22:54:54 +0000 (22:54 +0000)
committerskodak <skodak>
Wed, 3 Jan 2007 22:54:54 +0000 (22:54 +0000)
lib/weblib.php

index 85fcab2cdf5edf8b7801e149cb2c7ec0177c83cf..036b127d248ebc5f795344d8ba4526bc449dea33 100644 (file)
@@ -964,7 +964,7 @@ function popup_form($common, $options, $formid, $selected='', $nothing='choose',
                         ' id="'.$formid.'"'.
                         ' class="popupform">';
 
-    $output = '<div><select name="jump" onchange="'.$targetwindow.'.location=document.getElementById(\''.$formid.'\').jump.options[document.getElementById(\''.$form.'\').jump.selectedIndex].value;">'."\n";
+    $output = '<div><select name="jump" onchange="'.$targetwindow.'.location=document.getElementById(\''.$formid.'\').jump.options[document.getElementById(\''.$formid.'\').jump.selectedIndex].value;">'."\n";
 
     if ($nothing != '') {
         $output .= "   <option value=\"javascript:void(0)\">$nothing</option>\n";