Changeset 5969

Show
Ignore:
Timestamp:
07/08/08 17:49:51 (2 months ago)
Author:
p_lindheimer
Message:

#2845 more tabindex improvments to drawselects

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/trunk/amp_conf/htdocs/admin/functions.inc.php

    r5967 r5969  
    16381638// ie: if the form name is "edit", and drawselects has been called with $i=2 then use onsubmit="setDestinations(edit,2)" 
    16391639function drawselects($goto,$i,$show_custom=false) {   
    1640 global $tabindex; 
     1640       global $tabindex; 
    16411641         
    16421642        /* --- MODULES BEGIN --- */ 
     
    16661666 
    16671667        $foundone = false; 
     1668        $tabindex_needed = true; 
    16681669        foreach ($all_destinations as $cat=>$destination) { 
    16691670                // create a select option for each destination  
     
    16841685                $cat_identifier = preg_replace('/[^a-zA-Z0-9]/','_', $cat); 
    16851686                         
    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.'" '. 
    16881694                                //'onclick="javascript:this.form.goto'.$i.'.value=\''.$cat.'\';" '. 
    16891695                                //'onkeypress="javascript:if (event.keyCode == 0 || (document.all && event.keyCode == 13)) this.form.goto'.$i.'.value=\''.$cat.'\';" '. 
Donate



Support
Download
Develop
Forums
News
Documentation
Paid Support
About

Paid Ads