From d6cbf7c6b480a8a3d4cb2e00d37702f74e692470 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Wed, 20 Feb 2013 16:41:04 +0100 Subject: [PATCH] Just a string will be enough. --- 4chan_x.user.js | 2 +- src/features.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 94f7467b0..9086750f8 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1155,7 +1155,7 @@ Settings.addSection('Keybinds', Settings.keybinds); $.on(d, 'AddSettingsSection', Settings.addSection); $.on(d, 'OpenSettings', function(e) { - return Settings.open(e.detail.title); + return Settings.open(e.detail); }); if (Conf['Enable 4chan\'s extension']) { return; diff --git a/src/features.coffee b/src/features.coffee index cbebc9524..1a24aed28 100644 --- a/src/features.coffee +++ b/src/features.coffee @@ -152,7 +152,7 @@ Settings = Settings.addSection 'Rice', Settings.rice Settings.addSection 'Keybinds', Settings.keybinds $.on d, 'AddSettingsSection', Settings.addSection - $.on d, 'OpenSettings', (e) -> Settings.open e.detail.title + $.on d, 'OpenSettings', (e) -> Settings.open e.detail return if Conf['Enable 4chan\'s extension'] settings = JSON.parse(localStorage.getItem '4chan-settings') or {}