My website somehow produced a rather interesting issue. We have individual pages for each auction that goes live, and this one in particular got messed up somehow. Typically we have an edit button that allows us to perform various functions, and one of them kills the auction.
My question: is there a way that I can manually enter that kill command into the console on the web browser?
The initial JS for the functions:
$(document).ready(function() {
$(".remove_doc").click(function() {
var doc_id = $(this).attr("title");
var auction_id = $("#auction_id").val();
The "Kill Auction" command looks like this:
} else if(what == 'mark_dead') {
var confirmKill = confirm("Are you sure you want to kill this auction?");
if(confirmKill) {
$.post("edit_auction.php", {id:auction_id, dead:1}, function(data) {
if(data == 1) {
alert("You are now an auction murderer!");
location.reload(true);
} else {
alert("Failed murder attempt!");
}
});
} else {
alert("Your bullet missed...");
}
Any thoughts on how I can run this operation in the console would help tremendously!
Thanks!
Thank you everyone for your help on this!
I was able to figure it out. I just used bits and pieces from all of the advice. The JS command looks like this in the console