Changeset 7753 for trunk/prototype/modules/filters/filters.js
- Timestamp:
- 01/15/13 13:30:42 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/prototype/modules/filters/filters.js
r7719 r7753 31 31 if(filters[index].id == "vacation") 32 32 outoffice = true; 33 if(filters[index].id == "vacation" && filters[index].enabled ){33 if(filters[index].id == "vacation" && filters[index].enabled.toString() == "true"){ 34 34 write_msg(get_lang("Attention, you are in out of office mode."), true); 35 35 outoffice_active = true; … … 812 812 813 813 $(".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 }); 816 816 }); 817 817 DataLayer.commit("filter", false, function(){ … … 822 822 823 823 $(".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 }); 826 826 /**RETIRA FLAG*/ 827 removeMessagesFlag( o.innerHTML);827 removeMessagesFlag(urlencode(o.innerHTML)); 828 828 }); 829 829 DataLayer.commit("filter", false, function(){
Note: See TracChangeset
for help on using the changeset viewer.