Fix the post menu -> filter not being applied instantly in the setting textarea.

This commit is contained in:
Nicolas Stepien 2013-04-09 22:09:46 +02:00
parent 3e7240dd79
commit 1be56f8f05

View File

@ -1101,16 +1101,16 @@ Filter =
re re
$.set type, save $.set type, save
# Open the settings and display & focus the relevant filter textarea. # Open the settings and display & focus the relevant filter textarea.
Settings.open 'Filter' Settings.open 'Filter'
section = $ '.section-container' section = $ '.section-container'
select = $ 'select[name=filter]', section select = $ 'select[name=filter]', section
select.value = type select.value = type
Settings.selectFilter.call select Settings.selectFilter.call select
ta = $ 'textarea', section ta = $ 'textarea', section
tl = ta.textLength tl = ta.textLength
ta.setSelectionRange tl, tl ta.setSelectionRange tl, tl
ta.focus() ta.focus()
ThreadHiding = ThreadHiding =
init: -> init: ->