1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-23 23:20:57 +01:00

ukko & fix-re-de-su: fix reporting and deleting from ukko actually

This commit is contained in:
czaks 2016-05-09 11:08:24 +02:00
parent ccc9cff23d
commit 1cff10fd95

View File

@ -20,6 +20,7 @@ if ($('#delete-fields #password').length) {
var $ele = $(ele); var $ele = $(ele);
var threadId = $ele.parent().attr('id').replace('thread_', ''); var threadId = $ele.parent().attr('id').replace('thread_', '');
var postId = $ele.find('.post_no').not('[id]').text(); var postId = $ele.find('.post_no').not('[id]').text();
var board_name = $ele.parent().data('board');
$buf.find('#delete_post_menu,#delete_file_menu').click(function(e) { $buf.find('#delete_post_menu,#delete_file_menu').click(function(e) {
e.preventDefault(); e.preventDefault();
@ -30,6 +31,7 @@ if ($('#delete-fields #password').length) {
} else { } else {
$('#delete_file').prop('checked', ''); $('#delete_file').prop('checked', '');
} }
$('input[type="hidden"][name="board"]').val(board_name);
$('input[name=delete][type=submit]').click(); $('input[name=delete][type=submit]').click();
}); });
}); });
@ -42,6 +44,7 @@ Menu.onclick(function(e, $buf) {
var $ele = $(ele); var $ele = $(ele);
var threadId = $ele.parent().attr('id').replace('thread_', ''); var threadId = $ele.parent().attr('id').replace('thread_', '');
var postId = $ele.find('.post_no').not('[id]').text(); var postId = $ele.find('.post_no').not('[id]').text();
var board_name = $ele.parent().data('board');
$buf.find('#report_menu,#global_report_menu').click(function(e) { $buf.find('#report_menu,#global_report_menu').click(function(e) {
if ($(this).attr('id') === "global_report_menu") { if ($(this).attr('id') === "global_report_menu") {