From 743b141b1ad8a81a011f0592d2766b1e244178df Mon Sep 17 00:00:00 2001 From: James Campos Date: Tue, 12 Jun 2012 09:55:40 -0700 Subject: [PATCH] derp, append pwd to data, not xhr options --- 4chan_x.user.js | 4 ++-- script.coffee | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 3eb88cc44..999596e97 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -3449,13 +3449,13 @@ data = new FormData(); data.append(id, 'delete'); data.append('mode', 'usrdel'); + data.append('pwd', pwd); return $.ajax("https://sys.4chan.org/" + g.BOARD + "/imgboard.php", { onload: DeleteButton.load, onerror: DeleteButton.error }, { type: 'post', - form: data, - pwd: pwd + form: data }); }, load: function() { diff --git a/script.coffee b/script.coffee index 89a33333e..04288cbf4 100644 --- a/script.coffee +++ b/script.coffee @@ -2633,13 +2633,13 @@ DeleteButton = data = new FormData() data.append id, 'delete' data.append 'mode', 'usrdel' + data.append 'pwd', pwd $.ajax "https://sys.4chan.org/#{g.BOARD}/imgboard.php", { onload: DeleteButton.load onerror: DeleteButton.error }, { type: 'post' form: data - pwd: pwd } load: -> doc = d.implementation.createHTMLDocument ''