From 536f10070737faa3ef84f257f8d8454e0fbcc2d5 Mon Sep 17 00:00:00 2001 From: James Campos Date: Mon, 19 Jul 2010 07:19:57 -0700 Subject: [PATCH] use make I don't know why this wasn't in the last commit. --- 4chan_x.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/4chan_x.js b/4chan_x.js index 2ac03ef5c..00ce1b18d 100644 --- a/4chan_x.js +++ b/4chan_x.js @@ -492,11 +492,12 @@ cursor: pointer; \ clone.addEventListener('submit', submit, true); clone.target = 'iframe'; if (!REPLY) { - input = tag('input'); - input.type = 'hidden'; - input.name = 'resto'; xpath = 'preceding::span[@class="postername"][1]/preceding::input[1]'; - input.value = x(xpath, this).name; + input = make('input', { + value: x(xpath, this).name, + type: 'hidden', + name: 'resto' + }); clone.appendChild(input); } qr.appendChild(clone);