Merge pull request #2706 from colemanw/act
[civicrm-core.git] / templates / CRM / Report / Form / Criteria.tpl
index d4d1b15fa9e884cf384ad65f79e12dfbf5008798..db132b78ef4361ad99ed7b6cbcbcbeff38689461 100644 (file)
             cj('input[id^="order_by_section_"]').click(disPageBreak).each(disPageBreak);
             
             function disPageBreak() {
-              if (!cj(this).attr('checked')) {
-                cj(this).parent('td').next('td').children('input[id^="order_by_pagebreak_"]').attr({checked: false, disabled: "disabled"});
+              if (!cj(this).prop('checked')) {
+                cj(this).parent('td').next('td').children('input[id^="order_by_pagebreak_"]').prop({checked: false, disabled: true});
               }
               else {
-                cj(this).parent('td').next('td').children('input[id^="order_by_pagebreak_"]').attr({disabled: false});
+                cj(this).parent('td').next('td').children('input[id^="order_by_pagebreak_"]').prop({disabled: false});
               }
             }
 
                 // clear values on hidden field, so they're not saved
                 cj('select#order_by_column_'+ i).val('');
                 cj('select#order_by_order_'+ i).val('ASC');
-                cj('input#order_by_section_'+ i).attr('checked', false);
-                cj('input#order_by_pagebreak_'+ i).attr('checked', false);
+                cj('input#order_by_section_'+ i).prop('checked', false);
+                cj('input#order_by_pagebreak_'+ i).prop('checked', false);
             }
 
             {/literal}