whitespaces
This commit is contained in:
parent
2003b25c05
commit
28a46edcf3
@ -63,9 +63,9 @@ Filter =
|
|||||||
false
|
false
|
||||||
else
|
else
|
||||||
Conf['Stubs']
|
Conf['Stubs']
|
||||||
|
|
||||||
# Desktop notification
|
# Desktop notification
|
||||||
noti = /notify/.test filter
|
noti = /notify/.test filter
|
||||||
|
|
||||||
# Highlight the post, or hide it.
|
# Highlight the post, or hide it.
|
||||||
# If not specified, the highlight class will be filter-highlight.
|
# If not specified, the highlight class will be filter-highlight.
|
||||||
@ -110,7 +110,7 @@ Filter =
|
|||||||
stub: stub
|
stub: stub
|
||||||
class: hl
|
class: hl
|
||||||
top: top
|
top: top
|
||||||
noti: noti
|
noti: noti
|
||||||
|
|
||||||
(value, boardID, isReply) ->
|
(value, boardID, isReply) ->
|
||||||
if boards and boardID not in boards
|
if boards and boardID not in boards
|
||||||
@ -129,7 +129,7 @@ Filter =
|
|||||||
stub = true
|
stub = true
|
||||||
hl = undefined
|
hl = undefined
|
||||||
top = false
|
top = false
|
||||||
noti = false
|
noti = false
|
||||||
if QuoteYou.isYou(post)
|
if QuoteYou.isYou(post)
|
||||||
hideable = false
|
hideable = false
|
||||||
for key of Filter.filters when ((value = Filter[key] post)?)
|
for key of Filter.filters when ((value = Filter[key] post)?)
|
||||||
@ -143,8 +143,8 @@ Filter =
|
|||||||
unless hl and result.class in hl
|
unless hl and result.class in hl
|
||||||
(hl or= []).push result.class
|
(hl or= []).push result.class
|
||||||
top or= result.top
|
top or= result.top
|
||||||
if result.noti
|
if result.noti
|
||||||
noti = true
|
noti = true
|
||||||
if hide
|
if hide
|
||||||
{hide, stub, noti}
|
{hide, stub, noti}
|
||||||
else
|
else
|
||||||
@ -162,9 +162,9 @@ Filter =
|
|||||||
if hl
|
if hl
|
||||||
@highlights = hl
|
@highlights = hl
|
||||||
$.addClass @nodes.root, hl...
|
$.addClass @nodes.root, hl...
|
||||||
if noti
|
if noti
|
||||||
if Header.areNotificationsEnabled
|
if Header.areNotificationsEnabled
|
||||||
if not (Unread.posts is null)
|
if not (Unread.posts is null)
|
||||||
if (@ID > Unread.lastReadPost) and not QuoteYou.isYou(@)
|
if (@ID > Unread.lastReadPost) and not QuoteYou.isYou(@)
|
||||||
notif = new Notification "#{@info.nameBlock} triggered a notification filter",
|
notif = new Notification "#{@info.nameBlock} triggered a notification filter",
|
||||||
body: @commentDisplay()
|
body: @commentDisplay()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user