Changeset 12276
- Timestamp:
- 06/27/11 09:51:07 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
freepbx/trunk/amp_conf/htdocs/admin/helpers/freepbx_helpers.php
r12167 r12276 36 36 * 37 37 */ 38 function drawselects($goto,$i,$show_custom=false, $table=true, $nodest_msg='' ) {38 function drawselects($goto,$i,$show_custom=false, $table=true, $nodest_msg='', $required = true) { 39 39 global $tabindex, $active_modules, $drawselect_destinations, $drawselects_module_hash; 40 40 $html=$destmod=$errorclass=$errorstyle=''; … … 90 90 //draw "parent" select box 91 91 $style=' style="'.(($destmod=='Error')?'background-color:red;':'background-color:white;').'"'; 92 $html.='<select name="goto'.$i.'" class="destdropdown" '.$style.' tabindex="'.++$tabindex.'">'; 92 $html.='<select name="goto'.$i.'" class="destdropdown" '.$style.' tabindex="'.++$tabindex.'"' 93 . ($required ? ' required ' : '') . '>';//html5 validation 93 94 $html.='<option value="" style="background-color:white;">'.$nodest_msg.'</option>'; 94 95 foreach($drawselects_module_hash as $mod => $disc){
