From f2021725d398443042f117c8fec173d2905a2679 Mon Sep 17 00:00:00 2001 From: Michael Foster Date: Mon, 16 Sep 2013 04:45:53 +1000 Subject: [PATCH] work with threads and quick-post-controls.js --- js/ajax-post-controls.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(''); }