work with threads and quick-post-controls.js
This commit is contained in:
parent
4b45ccc4ee
commit
f2021725d3
@ -42,7 +42,7 @@ $(window).ready(function() {
|
|||||||
if ($($(form).data('submit-btn')).attr('name') == 'report') {
|
if ($($(form).data('submit-btn')).attr('name') == 'report') {
|
||||||
alert(_('Reported post(s).'));
|
alert(_('Reported post(s).'));
|
||||||
if ($(form).hasClass('post-actions')) {
|
if ($(form).hasClass('post-actions')) {
|
||||||
$(form).parent().find('input[type="checkbox"].delete').click();
|
$(form).parents('div.post').find('input[type="checkbox"].delete').click();
|
||||||
} else {
|
} else {
|
||||||
$(form).find('input[name="reason"]').val('');
|
$(form).find('input[name="reason"]').val('');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user