summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2013-08-04 01:53:37 -0400
committerczaks <marcin@6irc.net>2013-08-04 01:53:37 -0400
commit8a89893b0210217264e1041408e50d8caffa846a (patch)
tree3c41d04d22f5f1afa5ab3969327b82705dc06346 /js
parente2b5ec93547bde60244190aa7dd00b4f3523e1e0 (diff)
quick-post-controls.js: fix javascript interactions
Diffstat (limited to 'js')
-rw-r--r--js/quick-post-controls.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/js/quick-post-controls.js b/js/quick-post-controls.js
index c28f874f..1cbc0711 100644
--- a/js/quick-post-controls.js
+++ b/js/quick-post-controls.js
@@ -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);
});
});