2023-01-23 11:03:31 +01:00

21 lines
339 B
JavaScript

jQuery(document).ready(
function($) {
function ab_flag_spam() {
var $$ = $('#ab_flag_spam'),
nextAll = $$.parent('li').nextAll( '.ab_flag_spam_child' );
nextAll.css(
'display',
( $$.is(':checked') ? 'list-item' : 'none' )
);
}
$('#ab_flag_spam').on(
'change',
ab_flag_spam
);
ab_flag_spam();
}
);