Changeset 6565


Ignore:
Timestamp:
06/21/12 11:37:46 (12 years ago)
Author:
marcieli
Message:

Ticket #2883 - Validação ao salvar filtro sem definição de critério.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/prototype/modules/filters/filters.js

    r6564 r6565  
    9696        } 
    9797        $.each(criteria_list, function(index, value){ 
    98                 criteria += $.trim($(criteria_list[index]).val()); 
     98                if(($(criteria_list[index]).val() != "" && index != 5) || ($(criteria_list[index]).is(':checked'))){ 
     99                        criteria += $.trim($(criteria_list[index]).val()); 
     100                } 
    99101        }); 
    100102        if(criteria == ""){ 
     
    126128                } 
    127129        } 
     130        /*Validação ao salvar filtro com alerta*/ 
    128131        var criteria_operator_list = list_container.find('[name="criteriaOperator[]"]'); 
    129132        if(list_container.find('.alertMessage').is(':checked')){ 
Note: See TracChangeset for help on using the changeset viewer.