Ignore:
Timestamp:
06/26/11 12:03:56 (13 years ago)
Author:
brunocosta
Message:

Ticket #2012 - Trata uma busca que o retorno do servidor é vazio.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.0.1/contactcenter/js/ccAddGroup.js

    r4629 r4631  
    348348                data = unserialize(data); 
    349349 
    350                 if( !data ) 
    351                     return false; 
     350                if( !data || data[0] == 0){ 
     351                     
     352                     var contact_list = Element('contact_list'); 
     353                     for (var i = contact_list.options.length - 1; i >= 0; i--){ 
     354                         contact_list.options[i] = null; 
     355                     } 
     356                     contact_list.selectedIndex = -1; 
     357                     return false; 
     358                } 
     359                    
    352360                ccAddGroup.clearSourceList(); 
    353361                ccAGSearchTerm.value = ''; 
Note: See TracChangeset for help on using the changeset viewer.