*/
function popup_form($baseurl, $options, $formid, $selected='', $nothing='choose', $help='', $helptext='', $return=false,
$targetwindow='self', $selectlabel='', $optionsextra=NULL, $submitvalue='', $disabled=false, $showbutton=false) {
-
global $CFG, $SESSION;
static $go, $choose; /// Locally cached, in case there's lots on a page
$nothing = $choose.'...';
}
if ($disabled) {
- $disabled = 'disabled="disabled"';
+ $disabled = ' disabled="disabled"';
} else {
$disabled = '';
}
$formid.'\').jump.selectedIndex].value;"';
}
- $output .= '<div style="white-space:nowrap">'.$selectlabel.$button.'<select id="'.$formid.'_jump" name="jump"'.$javascript.'>'."\n";
+ $output .= '<div style="white-space:nowrap">'.$selectlabel.$button.'<select id="'.$formid.'_jump" name="jump"'.$javascript.$disabled.'>'."\n";
if ($nothing != '') {
$selectlabeloption = '';