diff --git a/js/quick-post-controls.js b/js/quick-post-controls.js
index 8a0c7eec..7137c0f9 100644
--- a/js/quick-post-controls.js
+++ b/js/quick-post-controls.js
@@ -15,7 +15,7 @@
$(document).ready(function() {
let open_form = function() {
- let thread = $(this).parent().parent().hasClass('op');
+ let thread = $(this).parent().parent().parent().hasClass('op');
let id = $(this).attr('name').match(/^delete_(\d+)$/)[1];
if (this.checked) {
@@ -28,18 +28,18 @@ $(document).ready(function() {
': ' +
'' +
'' +
- '' +
- ' ' +
+ '' +
+ ' ' +
'
' +
- ': ' +
+ ': ' +
'' +
' ' +
'' +
'');
- let board = $(this).parent().parent().parent().attr("data-board");
+ let board = $(this).parent().parent().parent().parent().attr("data-board");
if ($('form[name="post"]:first').length) {
post_form
.attr('action', $('form[name="post"]:first').attr('action'))