Make flags appear in inlined cross-board quotes. #578
This commit is contained in:
parent
000323dd00
commit
25d25cfb49
@ -28,6 +28,14 @@ class Fetcher
|
|||||||
if postID is @quoter.ID and boardID is @quoter.board.ID
|
if postID is @quoter.ID and boardID is @quoter.board.ID
|
||||||
$.addClass quote, 'forwardlink'
|
$.addClass quote, 'forwardlink'
|
||||||
|
|
||||||
|
# Set up flag CSS for cross-board links to boards with flags
|
||||||
|
if clone.nodes.flag and not (Fetcher.flagCSS or= $ 'link[href^="//s.4cdn.org/css/flags."]')
|
||||||
|
cssVersion = $('link[href^="//s.4cdn.org/css/"]')?.href.match(/\d+(?=\.css$)|$/)[0] or Date.now()
|
||||||
|
Fetcher.flagCSS = $.el 'link',
|
||||||
|
rel: 'stylesheet'
|
||||||
|
href: "//s.4cdn.org/css/flags.#{cssVersion}.css"
|
||||||
|
$.add d.head, Fetcher.flagCSS
|
||||||
|
|
||||||
$.rmAll @root
|
$.rmAll @root
|
||||||
$.add @root, nodes.root
|
$.add @root, nodes.root
|
||||||
$.event 'PostsInserted'
|
$.event 'PostsInserted'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user