Merge branch 'v3'

Conflicts:
	builds/appchan-x.user.js
	builds/crx/script.js
This commit is contained in:
Zixaphir 2014-03-14 17:09:32 -07:00
commit f903abd165
5 changed files with 3 additions and 1559 deletions

View File

@ -3276,7 +3276,6 @@
this.thread.OP = this;
this.thread.isSticky = !!$('.stickyIcon', info);
this.thread.isClosed = !!$('.closedIcon', info);
root.parentElement.dataset.fullID = this.fullID;
}
this.info = {};
if (subject = $('.subject', info)) {
@ -6010,7 +6009,7 @@
return "/" + thread.board + "/ - " + excerpt;
},
threadFromRoot: function(root) {
return g.threads[root.dataset.fullID];
return g.threads[$('.opcontainer', root).dataset.fullID];
},
threadFromNode: function(node) {
return Get.threadFromRoot($.x('ancestor::div[@class="thread"]', node));

View File

@ -3329,7 +3329,6 @@
this.thread.OP = this;
this.thread.isSticky = !!$('.stickyIcon', info);
this.thread.isClosed = !!$('.closedIcon', info);
root.parentElement.dataset.fullID = this.fullID;
}
this.info = {};
if (subject = $('.subject', info)) {
@ -6068,7 +6067,7 @@
return "/" + thread.board + "/ - " + excerpt;
},
threadFromRoot: function(root) {
return g.threads[root.dataset.fullID];
return g.threads[$('.opcontainer', root).dataset.fullID];
},
threadFromNode: function(node) {
return Get.threadFromRoot($.x('ancestor::div[@class="thread"]', node));

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

File diff suppressed because it is too large Load Diff

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