Fix post fetching
This commit is contained in:
parent
ca9abdc4e7
commit
be4be5a94b
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -8,7 +8,7 @@ Get =
|
||||
excerpt = "#{excerpt[...67]}..."
|
||||
"/#{thread.board}/ - #{excerpt}"
|
||||
threadFromRoot: (root) ->
|
||||
g.threads[root.dataset.fullID]
|
||||
g.threads[$('.opcontainer', root).dataset.fullID]
|
||||
threadFromNode: (node) ->
|
||||
Get.threadFromRoot $.x 'ancestor::div[@class="thread"]', node
|
||||
postFromRoot: (root) ->
|
||||
|
||||
@ -503,7 +503,9 @@ div.center:not(.ad-cnt) {
|
||||
}
|
||||
#index-search-clear {
|
||||
color: gray;
|
||||
margin-left: -1em;
|
||||
position: relative;
|
||||
left: -1.25em;
|
||||
width: 0;
|
||||
}
|
||||
<% if (type === 'crx') { %>
|
||||
/* ``::-webkit-*'' selectors break selector lists on Firefox. */
|
||||
|
||||
@ -23,7 +23,6 @@ class Post
|
||||
@thread.OP = @
|
||||
@thread.isSticky = !!$ '.stickyIcon', info
|
||||
@thread.isClosed = !!$ '.closedIcon', info
|
||||
root.parentElement.dataset.fullID = @fullID
|
||||
|
||||
@info = {}
|
||||
if subject = $ '.subject', info
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user