Changeset 4769


Ignore:
Timestamp:
07/15/11 14:55:17 (13 years ago)
Author:
roberto.santosjunior
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/contactcenter/js/ccAddGroup.js

    r4767 r4769  
    366366                data = unserialize(data); 
    367367 
    368                 if( !data ) 
    369                     return false; 
     368                if( !data || data[0] == 0){ 
     369                     
     370                     var contact_list = Element('contact_list'); 
     371                     for (var i = contact_list.options.length - 1; i >= 0; i--){ 
     372                         contact_list.options[i] = null; 
     373                     } 
     374                     contact_list.selectedIndex = -1; 
     375                     return false; 
     376                } 
     377                    
    370378                ccAddGroup.clearSourceList(); 
    371379                ccAGSearchTerm.value = ''; 
Note: See TracChangeset for help on using the changeset viewer.