Changeset 6089


Ignore:
Timestamp:
05/03/12 16:15:37 (12 years ago)
Author:
marcieli
Message:

Ticket #2686 - Corrigido: não é possível adicionar um dono na conta compartilhada.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoAdmin1_2/js/jscode/finder.js

    r6072 r6089  
    150150var options_cache = {}; 
    151151 
    152 function setOptions( fill, select, field ) 
    153 { 
     152function setOptions( fill, selectId, field ) 
     153{ 
     154        var select = $('#'+selectId); 
     155        select.html(''); 
     156         
    154157    for( var value in fill ) 
    155158    { 
     159        if(typeof(value) == "undefined") continue; 
     160         
    156161        if( !options_cache[value] ) 
    157162             options_cache[value] = {}; 
     
    160165             options_cache[value][field] = new Option( fill[value][field], value ); 
    161166 
    162         select[select.length] = options_cache[value][field]; 
    163     } 
    164  
    165     return( select ); 
     167        select.append('<option value="'+value+'">'+fill[value][field]+'</option>'); 
     168    } 
     169 
     170    return( select.find('option')); 
    166171} 
    167172 
    168173function fillSelect( fill, selectId, field ) 
    169174{ 
    170     //recupera as options do respectivo select 
    171     var select = Element( selectId ).options; 
    172  
    173     //Limpa todo o select 
    174     select.length = 0; 
    175  
    176175    //Inclui usuario comecando com a pesquisa 
    177     select = setOptions( fill, select, field ); 
     176    select = setOptions( fill, selectId, field ); 
    178177 
    179178    //chama o server side caso nao encontre resultado nenhum com essa sentenca 
Note: See TracChangeset for help on using the changeset viewer.