From a200b1b06a252ab3597629cdbd02921a57976fc0 Mon Sep 17 00:00:00 2001 From: James Campos Date: Thu, 11 Aug 2011 12:44:01 -0700 Subject: [PATCH] update conf --- 4chan_x.user.js | 6 ++++-- script.coffee | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 38ec40dcc..41c3c3687 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -341,10 +341,12 @@ }, cb: { checked: function() { - return $.set(this.name, this.checked); + $.set(this.name, this.checked); + return conf[this.name] = this.checked; }, value: function() { - return $.set(this.name, this.value); + $.set(this.name, this.value); + return conf[this.name] = this.value; } }, addStyle: function(css) { diff --git a/script.coffee b/script.coffee index 92976e166..0f8232909 100644 --- a/script.coffee +++ b/script.coffee @@ -232,8 +232,10 @@ $.extend $, cb: checked: -> $.set @name, @checked + conf[@name] = @checked value: -> $.set @name, @value + conf[@name] = @value addStyle: (css) -> style = $.el 'style', textContent: css