Changeset 13078 for trunk/admin/themes/default
- Timestamp:
- Feb 10, 2012, 1:30:15 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/themes/default/template/comments.tpl
r9586 r13078 1 1 {footer_script}{literal} 2 2 jQuery(document).ready(function(){ 3 function highlighComments() { 4 jQuery(".checkComment").each(function() { 5 var parent = jQuery(this).parent('tr'); 6 if (jQuery(this).children("input[type=checkbox]").is(':checked')) { 7 jQuery(parent).addClass('selectedComment'); 8 } 9 else { 10 jQuery(parent).removeClass('selectedComment'); 11 } 12 }); 13 } 14 3 15 jQuery(".checkComment").click(function(event) { 4 16 if (event.target.type !== 'checkbox') { 5 17 var checkbox = jQuery(this).children("input[type=checkbox]"); 6 18 jQuery(checkbox).attr('checked', !jQuery(checkbox).is(':checked')); 19 highlighComments(); 7 20 } 8 21 }); … … 10 23 jQuery("#commentSelectAll").click(function () { 11 24 jQuery(".checkComment input[type=checkbox]").attr('checked', true); 25 highlighComments(); 12 26 return false; 13 27 }); … … 15 29 jQuery("#commentSelectNone").click(function () { 16 30 jQuery(".checkComment input[type=checkbox]").attr('checked', false); 31 highlighComments(); 17 32 return false; 18 33 }); … … 22 37 jQuery(this).attr('checked', !$(this).is(':checked')); 23 38 }); 39 highlighComments(); 24 40 return false; 25 41 });
Note: See TracChangeset
for help on using the changeset viewer.