summaryrefslogtreecommitdiff
path: root/js/ajax-post-controls.js
diff options
context:
space:
mode:
authorMichael Foster <savetheinternet@tinyboard.org>2013-09-16 04:45:53 +1000
committerMichael Foster <savetheinternet@tinyboard.org>2013-09-16 04:45:53 +1000
commitf2021725d398443042f117c8fec173d2905a2679 (patch)
treed41f40d98bc86798b910175090c15bae981d20be /js/ajax-post-controls.js
parent4b45ccc4ee3780f1393cfa9b1944d8f2b809afa6 (diff)
work with threads and quick-post-controls.js
Diffstat (limited to 'js/ajax-post-controls.js')
-rw-r--r--js/ajax-post-controls.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/ajax-post-controls.js b/js/ajax-post-controls.js
index 4671e82e..fcb3da9d 100644
--- a/js/ajax-post-controls.js
+++ b/js/ajax-post-controls.js
@@ -42,7 +42,7 @@ $(window).ready(function() {
if ($($(form).data('submit-btn')).attr('name') == 'report') {
alert(_('Reported post(s).'));
if ($(form).hasClass('post-actions')) {
- $(form).parent().find('input[type="checkbox"].delete').click();
+ $(form).parents('div.post').find('input[type="checkbox"].delete').click();
} else {
$(form).find('input[name="reason"]').val('');
}