Fix #1194.
This commit is contained in:
parent
b903117ea9
commit
dc8551bcf1
@ -1,3 +1,5 @@
|
|||||||
|
- Fix impossibility to create new threads when in dead threads.
|
||||||
|
|
||||||
### 3.5.7 - *2013-07-13*
|
### 3.5.7 - *2013-07-13*
|
||||||
|
|
||||||
- Drop Opera <15 support.
|
- Drop Opera <15 support.
|
||||||
|
|||||||
@ -115,7 +115,8 @@ QR =
|
|||||||
|
|
||||||
status: ->
|
status: ->
|
||||||
return unless QR.nodes
|
return unless QR.nodes
|
||||||
if g.DEAD
|
{thread} = QR.posts[0]
|
||||||
|
if thread isnt 'new' and g.threads["#{g.BOARD}.#{thread}"].isDead
|
||||||
value = 404
|
value = 404
|
||||||
disabled = true
|
disabled = true
|
||||||
QR.cooldown.auto = false
|
QR.cooldown.auto = false
|
||||||
@ -501,6 +502,7 @@ QR =
|
|||||||
(QR.posts[index-1] or QR.posts[index+1]).select()
|
(QR.posts[index-1] or QR.posts[index+1]).select()
|
||||||
QR.posts.splice index, 1
|
QR.posts.splice index, 1
|
||||||
URL.revokeObjectURL @URL
|
URL.revokeObjectURL @URL
|
||||||
|
QR.status()
|
||||||
lock: (lock=true) ->
|
lock: (lock=true) ->
|
||||||
@isLocked = lock
|
@isLocked = lock
|
||||||
return unless @ is QR.selected
|
return unless @ is QR.selected
|
||||||
@ -536,15 +538,18 @@ QR =
|
|||||||
if input.type is 'checkbox'
|
if input.type is 'checkbox'
|
||||||
@spoiler = input.checked
|
@spoiler = input.checked
|
||||||
return
|
return
|
||||||
{value} = input
|
{name} = input.dataset
|
||||||
@[input.dataset.name] = value
|
@[name] = input.value
|
||||||
return if input.nodeName isnt 'TEXTAREA'
|
switch name
|
||||||
@nodes.span.textContent = value
|
when 'thread'
|
||||||
QR.characterCount()
|
QR.status()
|
||||||
# Disable auto-posting if you're typing in the first post
|
when 'com'
|
||||||
# during the last 5 seconds of the cooldown.
|
@nodes.span.textContent = @com
|
||||||
if QR.cooldown.auto and @ is QR.posts[0] and 0 < QR.cooldown.seconds <= 5
|
QR.characterCount()
|
||||||
QR.cooldown.auto = false
|
# Disable auto-posting if you're typing in the first post
|
||||||
|
# during the last 5 seconds of the cooldown.
|
||||||
|
if QR.cooldown.auto and @ is QR.posts[0] and 0 < QR.cooldown.seconds <= 5
|
||||||
|
QR.cooldown.auto = false
|
||||||
forceSave: ->
|
forceSave: ->
|
||||||
return unless @ is QR.selected
|
return unless @ is QR.selected
|
||||||
# Do this in case people use extensions
|
# Do this in case people use extensions
|
||||||
@ -652,6 +657,7 @@ QR =
|
|||||||
(if oldIndex < newIndex then $.after else $.before) @, el
|
(if oldIndex < newIndex then $.after else $.before) @, el
|
||||||
post = QR.posts.splice(oldIndex, 1)[0]
|
post = QR.posts.splice(oldIndex, 1)[0]
|
||||||
QR.posts.splice newIndex, 0, post
|
QR.posts.splice newIndex, 0, post
|
||||||
|
QR.status()
|
||||||
|
|
||||||
captcha:
|
captcha:
|
||||||
init: ->
|
init: ->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user