Changeset 7609


Ignore:
Timestamp:
12/05/12 09:44:10 (11 years ago)
Author:
marcieli
Message:

Ticket #3219 - Corrigido problema com 'manter uma mensagem na caixa de entrada' que fica marcada apos desmarca-la

Location:
trunk/prototype/modules/filters
Files:
2 edited

Legend:

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

    r7596 r7609  
    124124.filter-manager-window .ui-accordion-icons .ui-accordion-header a { padding-left: 2.2em; } 
    125125 
     126/*Custom zebraDialog - INICIO*/ 
     127.custom-zebra-filter{ 
     128    z-index: 9999 !important; 
     129} 
     130div.ZebraDialogOverlay { 
     131    z-index: 9998 !important; 
     132} 
     133/*Custom zebraDialog - FIM*/ 
  • trunk/prototype/modules/filters/filters.js

    r7484 r7609  
    4848                if($.trim(list_container.find('[name="name"]').val()) == ""){ 
    4949                        $.Zebra_Dialog(get_lang("No name filled"),{ 
     50                'overlay_opacity': '0.5', 
     51                'custom_class': 'custom-zebra-filter', 
    5052                                'onClose':  function(caption) { 
    5153                                        list_container.find('[name="name"]').focus(); 
     
    5658                }else if($.trim(list_container.find('[name="name"]').val()) == "vacation"){ 
    5759                        $.Zebra_Dialog(get_lang("Invalid name, 'vacation' is a reserved word"),{ 
     60                'overlay_opacity': '0.5', 
     61                'custom_class': 'custom-zebra-filter', 
    5862                                'onClose':  function(caption) { 
    5963                                        list_container.find('[name="name"]').val("").focus(); 
     
    6872                                if(filter_list[index].name == list_container.find('[name="name"]').val()){ 
    6973                                        $.Zebra_Dialog(get_lang("There is already a filter with this name"),{ 
     74                        'overlay_opacity': '0.5', 
     75                        'custom_class': 'custom-zebra-filter', 
    7076                                                'onClose':  function(caption) { 
    7177                                                        list_container.find('[name="name"]').val("").focus(); 
     
    8894        if($(".sizeRule").val() != "" && er_num.test($(".sizeRule").val()) == false) { 
    8995                $.Zebra_Dialog(get_lang("Size rule must be a number"),{ 
     96            'overlay_opacity': '0.5', 
     97            'custom_class': 'custom-zebra-filter', 
    9098                        'onClose':  function(caption) { 
    9199                                list_container.find('[name="actionType[]"]:checked').parent().find("input:text, textarea").focus(); 
     
    102110        if(criteria == ""){ 
    103111                $.Zebra_Dialog(get_lang("No criteria filled"),{ 
     112            'overlay_opacity': '0.5', 
     113            'custom_class': 'custom-zebra-filter', 
    104114                        'onClose':  function(caption) { 
    105115                                list_container.find('[name="criteriaValue[]"]:first').focus(); 
     
    112122                if($.trim(list_container.find('[name="actionType[]"]:checked').parent().find("input:text, textarea").val()) == ""){ 
    113123                        $.Zebra_Dialog(get_lang("Fill the action value"),{ 
     124                'overlay_opacity': '0.5', 
     125                'custom_class': 'custom-zebra-filter', 
    114126                                'onClose':  function(caption) { 
    115127                                        list_container.find('[name="actionType[]"]:checked').parent().find("input:text, textarea").focus(); 
     
    121133                if(er_mail.test($.trim(list_container.find('[value="redirect"]:checked').parent().find("input:text").val())) == false && list_container.find('[name="actionType[]"]:checked').val() == 'redirect'){ 
    122134                        $.Zebra_Dialog(get_lang("Invalid mail"),{ 
     135                'overlay_opacity': '0.5', 
     136                'custom_class': 'custom-zebra-filter', 
    123137                                'onClose':  function(caption) { 
    124138                                        list_container.find('[name="actionType[]"]:checked').parent().find("input:text, textarea").focus(); 
     
    141155                        }); 
    142156                        if(hasValue){ 
    143                                 $.Zebra_Dialog('<strong>'+get_lang('Filter with alert')+'</strong><br>'+get_lang('If more than one criterion for the filter, the "Meeting all the criteria" must be selected')); 
     157                                $.Zebra_Dialog('<strong>'+get_lang('Filter with alert')+'</strong><br>'+get_lang('If more than one criterion for the filter, the "Meeting all the criteria" must be selected'),{ 
     158                    'overlay_opacity': '0.5', 
     159                    'custom_class': 'custom-zebra-filter' 
     160                }); 
    144161                                return false; 
    145162                        }  
    146163                }else{ 
    147                         $.Zebra_Dialog('<strong>'+get_lang('Filter with alert')+'</strong><br>'+get_lang('The filter should be set as a criteria "Sender" and action "Archive folder"')); 
     164                        $.Zebra_Dialog('<strong>'+get_lang('Filter with alert')+'</strong><br>'+get_lang('The filter should be set as a criteria "Sender" and action "Archive folder"'),{ 
     165                'overlay_opacity': '0.5', 
     166                'custom_class': 'custom-zebra-filter' 
     167            }); 
    148168                        return false; 
    149169                } 
     
    225245                if((filter.actions[i].type == "fileinto" && first_fileinto_action) || filter.actions[i].type == "setflag"){ 
    226246                        actions.parent().find('[value="'+filter.actions[i].parameter+'"]').attr("selected", "selected"); 
    227                         if(filter.actions[i].type == "fileinto") 
    228                                 first_fileinto_action =false; 
     247//                      if(filter.actions[i].type == "fileinto") 
     248//                              first_fileinto_action =false; 
    229249                } 
    230250                /*A condição abaixo é executada quando uma segunda action do tipo "fileinto" for encontrada*/ 
    231251                if(filter.actions[i].type == "fileinto" && !first_fileinto_action){ 
    232252                        $('.fileintoInbox').attr('checked', 'True'); 
    233                         continue; 
    234                 }        
    235                 /*O comando "continue" da condição acima faz com que estas linhas restantes sejam ignoradas*/ 
    236                 actions.filter( '[value="' + filter.actions[i].type + '"]' ).attr("checked", "True"); 
    237                 actions.filter( '[value="' + filter.actions[i].type + '"]' ).val( filter.actions[i].type ) 
    238                 .siblings( '[name="actionParameter[]"]' ).val( filter.actions[i].parameter ); 
     253                }else{ 
     254            first_fileinto_action =false; 
     255            actions.filter( '[value="' + filter.actions[i].type + '"]' ).attr("checked", "True"); 
     256            actions.filter( '[value="' + filter.actions[i].type + '"]' ).val( filter.actions[i].type ) 
     257            .siblings( '[name="actionParameter[]"]' ).val( filter.actions[i].parameter ); 
     258        } 
    239259    }    
    240260        isExact.filter('[value="'+(filter.isExact != "false"? "and" : "or")+'"]').attr("checked", "True"); 
     
    401421                                DataLayer.remove( 'filter', filters[index].id ); 
    402422                                DataLayer.commit("filter", false, function(){ 
    403                                         $.Zebra_Dialog(get_lang("Lock User") + " " + email + " " + get_lang("removed")); 
     423                                        $.Zebra_Dialog(get_lang("Lock User") + " " + email + " " + get_lang("removed"),{ 
     424                        'overlay_opacity': '0.5', 
     425                        'custom_class': 'custom-zebra-filter' 
     426                    }); 
    404427                                        list_filters(); 
    405428                                        getFromAlertRules(); 
     
    420443                                        }); 
    421444                DataLayer.commit("filter", false, function(){ 
    422                         $.Zebra_Dialog(get_lang("User") + " " + email + " " + get_lang("blocked")); 
     445                        $.Zebra_Dialog(get_lang("User") + " " + email + " " + get_lang("blocked"),{ 
     446                'overlay_opacity': '0.5', 
     447                'custom_class': 'custom-zebra-filter' 
     448            }); 
    423449                        list_filters(); 
    424450                        getFromAlertRules(); 
     
    746772                        'title':    get_lang("Exclusion Confirmation"), 
    747773                        'buttons':  [get_lang('Yes'), get_lang('No')], 
     774            'overlay_opacity': '0.5', 
     775            'custom_class': 'custom-zebra-filter', 
    748776                        'onClose':  function(caption) { 
    749777                                if(caption == get_lang('Yes')){ 
     
    793821                        'title':    get_lang("Exclusion Confirmation"), 
    794822                        'buttons':  [get_lang('Yes'), get_lang('No')], 
     823            'overlay_opacity': '0.5', 
     824            'custom_class': 'custom-zebra-filter', 
    795825                        'onClose':  function(caption) { 
    796826                                if(caption == get_lang('Yes')){ 
     
    866896                        }).end().filter(".submit").click(function(){ 
    867897                                if(list_container.find(".vacation-details-container .filter-textarea").val().length <= 0){ 
    868                                                 $.Zebra_Dialog(get_lang('Write a message')); 
     898                                                $.Zebra_Dialog(get_lang('Write a message'),{ 
     899                            'overlay_opacity': '0.5', 
     900                            'custom_class': 'custom-zebra-filter' 
     901                        }); 
    869902                                                list_container.find(".vacation-details-container .filter-textarea").focus(); 
    870903                                }else{ 
Note: See TracChangeset for help on using the changeset viewer.