forked from leftypol/leftypol
quick-post-controls.js: fix undefined board parameter
This commit is contained in:
parent
3453ff5aed
commit
f8bbb13609
1 changed files with 5 additions and 5 deletions
|
@ -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) {
|
||||
|
@ -39,7 +39,7 @@ $(document).ready(function() {
|
|||
'</div>' +
|
||||
'</form>');
|
||||
|
||||
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'))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue