Enable customizing the number of comments/replies required to prevent editing or deleting a post

This commit is contained in:
Kijin Sung 2026-02-06 18:06:16 +09:00
parent 5a8c669c42
commit 2f8c4ca77d
8 changed files with 110 additions and 50 deletions

View file

@ -347,9 +347,14 @@ jQuery(function($){
$.fn.checkToggle = function(){
function check(){
setTimeout(function(){
$(':checked').parent('label').addClass('checked');
$(':not(":checked")').parent('label').removeClass('checked');
},0);
$(':radio, :checkbox').each(function() {
if ($(this).is(':checked')) {
$(this).parent('label').addClass('checked');
} else {
$(this).parent('label').removeClass('checked');
}
});
}, 0);
}
this.change(check);
check();