From 1521e0d7a36b9d21aa99e705b1174c6c47e40e55 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Sun, 8 May 2011 19:46:51 +0200 Subject: [PATCH] Fix qr inputs values if they have a space in it. Apply mail and password too. --- 4chan_x.js | 6 ++++-- script.coffee | 8 +++++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/4chan_x.js b/4chan_x.js index 1e7e0939d..c16f579fe 100644 --- a/4chan_x.js +++ b/4chan_x.js @@ -1135,11 +1135,13 @@ } }, dialog: function(link) { - var MAX_FILE_SIZE, THREAD_ID, clone, dialog, el, html, name, spoiler; + var MAX_FILE_SIZE, THREAD_ID, clone, dialog, el, html, mail, name, pass, spoiler; MAX_FILE_SIZE = $('input[name="MAX_FILE_SIZE"]').value; THREAD_ID = g.THREAD_ID || link.pathname.split('/').pop(); name = $('input[name=name]').value; - html = "
Quick Reply X
"; + mail = $('input[name=email]').value; + pass = $('input[name=pwd]').value; + html = "
Quick Reply X
"; dialog = ui.dialog('qr', { top: '0px', left: '0px' diff --git a/script.coffee b/script.coffee index 26ee06243..a6ac999de 100644 --- a/script.coffee +++ b/script.coffee @@ -889,9 +889,11 @@ qr = MAX_FILE_SIZE = $('input[name="MAX_FILE_SIZE"]').value THREAD_ID = g.THREAD_ID or link.pathname.split('/').pop() name = $('input[name=name]').value + mail = $('input[name=email]').value + pass = $('input[name=pwd]').value html = "
- + Quick Reply X @@ -899,12 +901,12 @@ qr =
-
+
-
+
"