Allow upvoting from index even though we can't tally from there.
This commit is contained in:
parent
8f3879c9bd
commit
4ba66d7833
@ -4,7 +4,7 @@ Upvotes =
|
||||
regexp: /(?:^>.*\n)+\s*(?:\u305D\u3046\u3060\u306D|this)/gmi
|
||||
|
||||
init: ->
|
||||
return unless g.VIEW is 'thread' and Conf['Upvotes']
|
||||
return unless g.VIEW in ['thread', 'index'] and Conf['Upvotes']
|
||||
@textPosted = if g.BOARD.ID is 'r9k' then 'This.' else @text
|
||||
Post.callbacks.push
|
||||
name: 'Upvotes'
|
||||
@ -26,6 +26,8 @@ Upvotes =
|
||||
@nodes.vote = a
|
||||
$.on a, 'click', Upvotes.vote
|
||||
|
||||
return unless g.VIEW is 'thread'
|
||||
|
||||
Upvotes.count[@fullID] = 0
|
||||
|
||||
quotes = {}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user