Fix undo removing all filters in Firefox (#946) as well as the filters not being scrolled to the bottom when an item is added from the menu.
This commit is contained in:
parent
dc29011c10
commit
6168fd5229
@ -271,7 +271,7 @@ Filter =
|
|||||||
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
|
$.onExists section, 'textarea', (ta) ->
|
||||||
tl = ta.textLength
|
tl = ta.textLength
|
||||||
ta.setSelectionRange tl, tl
|
ta.setSelectionRange tl, tl
|
||||||
ta.focus()
|
ta.focus()
|
||||||
|
|||||||
@ -441,10 +441,10 @@ Settings =
|
|||||||
name: name
|
name: name
|
||||||
className: 'field'
|
className: 'field'
|
||||||
spellcheck: false
|
spellcheck: false
|
||||||
$.get name, Conf[name], (item) ->
|
|
||||||
(ta.value = item[name])
|
|
||||||
$.on ta, 'change', $.cb.value
|
$.on ta, 'change', $.cb.value
|
||||||
$.add div, ta
|
$.get name, Conf[name], (item) ->
|
||||||
|
ta.value = item[name]
|
||||||
|
$.add div, ta
|
||||||
return
|
return
|
||||||
$.extend div, <%= readHTML('Filter-guide.html') %>
|
$.extend div, <%= readHTML('Filter-guide.html') %>
|
||||||
$('.warning', div).hidden = Conf['Filter']
|
$('.warning', div).hidden = Conf['Filter']
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user