summaryrefslogtreecommitdiff
path: root/js/quick-post-controls.js
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2013-08-04 01:53:37 -0400
committerMichael Foster <savetheinternet@tinyboard.org>2013-08-04 04:35:41 -0400
commitfb3b9ea868b7c65e18f8cde5d4d66388d78e5da8 (patch)
tree618eb812d693eba42837b21c1569e458cc7373cd /js/quick-post-controls.js
parenta2b432cfb08c75159f73e2112be600cb5c0a4ef1 (diff)
quick-post-controls.js: fix javascript interactions
Diffstat (limited to 'js/quick-post-controls.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);
});
});