Changeset 7753


Ignore:
Timestamp:
01/15/13 13:30:42 (11 years ago)
Author:
marcieli
Message:

Ticket #3295 - Corrigidos problemas com Filtros fora do escritorio.

File:
1 edited

Legend:

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

    r7719 r7753  
    3131                if(filters[index].id == "vacation") 
    3232                        outoffice = true; 
    33                 if(filters[index].id == "vacation" && filters[index].enabled){ 
     33                if(filters[index].id == "vacation" && filters[index].enabled.toString() == "true"){ 
    3434                        write_msg(get_lang("Attention, you are in out of office mode."), true); 
    3535                        outoffice_active = true; 
     
    812812 
    813813        $(".button.allenable").click(function(){ 
    814                 container.find('.rule-list').find('.rule').find('.select').find(':checked').parents('.rule').find('.title').each(function(i,o){ 
    815                         DataLayer.put( 'filter', urlencode(o.innerHTML), { enabled: true  }); 
     814        container.find('.rule-list').find('.rule').find('.select').find(':checked').parents('.rule').find('input.id').each(function(i,o){ 
     815                        DataLayer.put( 'filter', o.value, { enabled: true  }); 
    816816                }); 
    817817                DataLayer.commit("filter", false, function(){ 
     
    822822 
    823823        $(".button.alldisable").click(function(){ 
    824                 container.find('.rule-list').find('.rule').find('.select').find(':checked').parents('.rule').find('.title').each(function(i,o){ 
    825                         DataLayer.put( 'filter', urlencode(o.innerHTML), { enabled: false  }); 
     824        container.find('.rule-list').find('.rule').find('.select').find(':checked').parents('.rule').find('input.id').each(function(i,o){ 
     825                        DataLayer.put( 'filter', o.value, { enabled: false  }); 
    826826                        /**RETIRA FLAG*/ 
    827                         removeMessagesFlag(o.innerHTML); 
     827                        removeMessagesFlag(urlencode(o.innerHTML)); 
    828828                }); 
    829829                DataLayer.commit("filter", false, function(){ 
Note: See TracChangeset for help on using the changeset viewer.