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. - Fix bug where a thread would freeze on load.
### 3.2.1 - *2013-04-26* ### 3.2.1 - *2013-04-26*

View File

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