mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-02-18 03:37:35 +01:00
quick-post-controls.js: fix javascript interactions
This commit is contained in:
parent
3686878eb4
commit
68b0ad2b48
@ -71,10 +71,16 @@ $(document).ready(function(){
|
||||
}
|
||||
};
|
||||
|
||||
$('div.post input[type=checkbox].delete').each(function() {
|
||||
var init_qpc = function() {
|
||||
$(this).change(open_form);
|
||||
if(this.checked)
|
||||
$(this).trigger('change');
|
||||
};
|
||||
|
||||
$('div.post input[type=checkbox].delete').each(init_qpc);
|
||||
|
||||
$(document).bind('new_post', function(e, post) {
|
||||
$(post).find('input[type=checkbox].delete').each(init_qpc);
|
||||
});
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user