Changeset 6320 for sandbox/2.4.1-1


Ignore:
Timestamp:
05/25/12 17:29:34 (12 years ago)
Author:
marcieli
Message:

Ticket #2764 - Validação ao salvar filtro com alerta.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/2.4.1-1/prototype/modules/filters/filters.js

    r6292 r6320  
    121121                                } 
    122122                        }); 
     123                        return false; 
     124                } 
     125        } 
     126        if(list_container.find('.alertMessage').is(':checked')){ 
     127                if($(criteria_list[0]).val() != "" && list_container.find('.select-folderlist radio').is(':checked')){ 
     128                        var hasValue = false; 
     129                        $.each(criteria_list, function(index, value){ 
     130                                if($(criteria_list[index]).val() != "" && index != 0){ 
     131                                        hasValue = true; 
     132                                } 
     133                        }); 
     134                        if(hasValue){ 
     135                                $.Zebra_Dialog(get_lang("This filter not permits alert")); 
     136                                return false; 
     137                        } 
     138                        if(list_container.find('[name="hasAttachment"]').is(':checked')){ 
     139                                $.Zebra_Dialog(get_lang("This filter not permits alert")); 
     140                                return false; 
     141                        } 
     142                }else{ 
     143                        $.Zebra_Dialog(get_lang("This filter not permits alert")); 
    123144                        return false; 
    124145                } 
Note: See TracChangeset for help on using the changeset viewer.