From 1be56f8f05e628523c33d3410cdc40af0088d3bf Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Tue, 9 Apr 2013 22:09:46 +0200 Subject: [PATCH] Fix the post menu -> filter not being applied instantly in the setting textarea. --- src/features.coffee | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/features.coffee b/src/features.coffee index d270edf92..6e6d537a1 100644 --- a/src/features.coffee +++ b/src/features.coffee @@ -1101,16 +1101,16 @@ Filter = re $.set type, save - # Open the settings and display & focus the relevant filter textarea. - Settings.open 'Filter' - section = $ '.section-container' - select = $ 'select[name=filter]', section - select.value = type - Settings.selectFilter.call select - ta = $ 'textarea', section - tl = ta.textLength - ta.setSelectionRange tl, tl - ta.focus() + # Open the settings and display & focus the relevant filter textarea. + Settings.open 'Filter' + section = $ '.section-container' + select = $ 'select[name=filter]', section + select.value = type + Settings.selectFilter.call select + ta = $ 'textarea', section + tl = ta.textLength + ta.setSelectionRange tl, tl + ta.focus() ThreadHiding = init: ->