Rice section fixes.

This commit is contained in:
Nicolas Stepien 2013-04-27 04:42:40 +02:00
parent 010618a6ef
commit 437856be64
2 changed files with 10 additions and 9 deletions

View File

@ -1,3 +1,4 @@
- Fix Unread Count taking into account hidden posts.
- Fix bug where a thread would freeze on load.
### 3.2.1 - *2013-04-26*

View File

@ -339,18 +339,18 @@ Settings =
input = $ "[name=#{name}]", section
items[name] = Conf[name]
inputs[name] = input
event = if name in ['favicon', 'usercss']
'change'
else
'input'
$.on input, event, $.cb.value
$.on input, 'change', $.cb.value
$.get items, (items) ->
for key, val of items
input = inputs[key]
input.value = val
unless key in ['usercss']
$.on input, event, Settings[key]
Settings[key].call input
continue if key is 'usercss'
event = if key in ['favicon', 'usercss']
'change'
else
'input'
$.on input, event, Settings[key]
Settings[key].call input
return
$.on $('input[name="Custom CSS"]', section), 'change', Settings.togglecss
$.on $.id('apply-css'), 'click', Settings.usercss
@ -360,7 +360,7 @@ Settings =
funk = Time.createFunc @value
@nextElementSibling.textContent = funk Time, new Date()
backlink: ->
@nextElementSibling.textContent = Conf['backlink'].replace /%id/, '123456789'
@nextElementSibling.textContent = @value.replace /%id/, '123456789'
fileInfo: ->
data =
isReply: true