Changeset 9234

Show
Ignore:
Timestamp:
03/16/10 07:01:05 (3 years ago)
Author:
mbrevda
Message:

re: #1798; more specific handeling of selects by restricting actions to destdropdown2 class

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/trunk/amp_conf/htdocs/admin/common/script.legacy.js

    r9230 r9234  
    654654      var id=name.replace('goto',''); 
    655655      var dest=$(this).val(); 
    656       $('[name$='+id+']').not(this).hide(); 
    657       $('[name='+dest+id+']').show(); 
     656      $('[name$='+id+'].destdropdown2').hide(); 
     657      $('[name='+dest+id+'].destdropdown2').show(); 
    658658  }); 
    659659    //hacky way to ensure destinations dropdown is the background-color as currently selected item 
  • freepbx/trunk/amp_conf/htdocs/admin/functions.inc.php

    r9232 r9234  
    20582058    if($cat=='Error'){$style.=' '.$errorstyle;}//add error style 
    20592059    $style=' style="'.(($cat=='Error')?'background-color:red;':$style).'"'; 
    2060     $html.='<select name="'.str_replace(' ','_',$cat).$i.'" '.$tabindexhtml.$style.'>'; 
     2060    $html.='<select name="'.str_replace(' ','_',$cat).$i.'" '.$tabindexhtml.$style.' class="destdropdown2">'; 
    20612061    foreach($destination as $dest){ 
    20622062      $selected=($goto==$dest['destination'])?'SELECTED ':' ';