quick-post-controls.js: fix javascript interactions

This commit is contained in:
czaks 2013-08-04 01:53:37 -04:00
parent e2b5ec9354
commit 8a89893b02

View File

@ -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);
});
});