Changeset 5969
- Timestamp:
- 07/08/08 17:49:51 (2 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
freepbx/trunk/amp_conf/htdocs/admin/functions.inc.php
r5967 r5969 1638 1638 // ie: if the form name is "edit", and drawselects has been called with $i=2 then use onsubmit="setDestinations(edit,2)" 1639 1639 function drawselects($goto,$i,$show_custom=false) { 1640 global $tabindex;1640 global $tabindex; 1641 1641 1642 1642 /* --- MODULES BEGIN --- */ … … 1666 1666 1667 1667 $foundone = false; 1668 $tabindex_needed = true; 1668 1669 foreach ($all_destinations as $cat=>$destination) { 1669 1670 // create a select option for each destination … … 1684 1685 $cat_identifier = preg_replace('/[^a-zA-Z0-9]/','_', $cat); 1685 1686 1686 $tabindex_txt = (isset($tabindex) && $tabindex != '') ? ' tabindex="'.++$tabindex.'" ':''; 1687 $selectHtml .= '<input type="radio" '.$tabindex_txt.'id="'.$radioid.'" name="goto'.$i.'" value="'.$cat_identifier.'" '. 1687 if ($tabindex_needed && ($checked || ! $goto)) { 1688 $tabindex_txt = (isset($tabindex) && $tabindex != '') ? ' tabindex="'.++$tabindex.'" ':''; 1689 $tabindex_needed = false; 1690 } else { 1691 $tabindex_txt = ''; 1692 } 1693 $selectHtml .= '<input type="radio"'.$tabindex_txt.' id="'.$radioid.'" name="goto'.$i.'" value="'.$cat_identifier.'" '. 1688 1694 //'onclick="javascript:this.form.goto'.$i.'.value=\''.$cat.'\';" '. 1689 1695 //'onkeypress="javascript:if (event.keyCode == 0 || (document.all && event.keyCode == 13)) this.form.goto'.$i.'.value=\''.$cat.'\';" '.
