Fix post fetching

This commit is contained in:
Zixaphir 2014-03-14 17:08:00 -07:00
parent ca9abdc4e7
commit be4be5a94b
5 changed files with 8 additions and 9 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -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) ->

View File

@ -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. */

View File

@ -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