From 9d1be8b84344f5fc79be9320fe8e373e70396ae3 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Mon, 4 Jun 2012 18:11:52 +0200 Subject: [PATCH] Fix #525 --- 4chan_x.user.js | 4 ++-- script.coffee | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index a5d5e3057..affcfccbd 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1093,13 +1093,13 @@ if (target.nodeName !== 'TEXTAREA') { return; } - Keybinds.tags('spoiler', ta); + Keybinds.tags('spoiler', target); break; case Conf.code: if (target.nodeName !== 'TEXTAREA') { return; } - Keybinds.tags('code', ta); + Keybinds.tags('code', target); break; case Conf.watch: Watcher.toggle(thread); diff --git a/script.coffee b/script.coffee index 35cbd216e..a3863326b 100644 --- a/script.coffee +++ b/script.coffee @@ -816,10 +816,10 @@ Keybinds = QR.submit() if QR.el and !QR.status() when Conf.spoiler return if target.nodeName isnt 'TEXTAREA' - Keybinds.tags 'spoiler', ta + Keybinds.tags 'spoiler', target when Conf.code return if target.nodeName isnt 'TEXTAREA' - Keybinds.tags 'code', ta + Keybinds.tags 'code', target # Thread related when Conf.watch Watcher.toggle thread