mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-29 07:12:15 +09:00
Enable customizing the number of comments/replies required to prevent editing or deleting a post
This commit is contained in:
parent
5a8c669c42
commit
2f8c4ca77d
8 changed files with 110 additions and 50 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue