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
|
regexp: /(?:^>.*\n)+\s*(?:\u305D\u3046\u3060\u306D|this)/gmi
|
||||||
|
|
||||||
init: ->
|
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
|
@textPosted = if g.BOARD.ID is 'r9k' then 'This.' else @text
|
||||||
Post.callbacks.push
|
Post.callbacks.push
|
||||||
name: 'Upvotes'
|
name: 'Upvotes'
|
||||||
@ -26,6 +26,8 @@ Upvotes =
|
|||||||
@nodes.vote = a
|
@nodes.vote = a
|
||||||
$.on a, 'click', Upvotes.vote
|
$.on a, 'click', Upvotes.vote
|
||||||
|
|
||||||
|
return unless g.VIEW is 'thread'
|
||||||
|
|
||||||
Upvotes.count[@fullID] = 0
|
Upvotes.count[@fullID] = 0
|
||||||
|
|
||||||
quotes = {}
|
quotes = {}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user