hasInline

This commit is contained in:
Jordan Bates 2013-05-27 14:20:07 -07:00
parent a9efc9d79d
commit 7270c8060a
4 changed files with 21 additions and 7 deletions

View File

@ -3796,14 +3796,17 @@
}
},
add: function(quotelink, boardID, threadID, postID, context) {
var inline, isBacklink, post;
var inline, isBacklink, post, qroot, root;
isBacklink = $.hasClass(quotelink, 'backlink');
inline = $.el('div', {
id: "i" + postID,
className: 'inline'
});
$.after(QuoteInline.findRoot(quotelink, isBacklink), inline);
root = QuoteInline.findRoot(quotelink, isBacklink);
$.after(root, inline);
qroot = $.x('ancestor::*[contains(@class,"postContainer")][1]', root);
$.addClass(qroot, 'hasInline');
Get.postClone(boardID, threadID, postID, inline, context);
if (!((post = g.posts["" + boardID + "." + postID]) && context.thread === post.thread)) {
return;

View File

@ -3792,14 +3792,17 @@
}
},
add: function(quotelink, boardID, threadID, postID, context) {
var inline, isBacklink, post;
var inline, isBacklink, post, qroot, root;
isBacklink = $.hasClass(quotelink, 'backlink');
inline = $.el('div', {
id: "i" + postID,
className: 'inline'
});
$.after(QuoteInline.findRoot(quotelink, isBacklink), inline);
root = QuoteInline.findRoot(quotelink, isBacklink);
$.after(root, inline);
qroot = $.x('ancestor::*[contains(@class,"postContainer")][1]', root);
$.addClass(qroot, 'hasInline');
Get.postClone(boardID, threadID, postID, inline, context);
if (!((post = g.posts["" + boardID + "." + postID]) && context.thread === post.thread)) {
return;

View File

@ -3794,14 +3794,17 @@
}
},
add: function(quotelink, boardID, threadID, postID, context) {
var inline, isBacklink, post;
var inline, isBacklink, post, qroot, root;
isBacklink = $.hasClass(quotelink, 'backlink');
inline = $.el('div', {
id: "i" + postID,
className: 'inline'
});
$.after(QuoteInline.findRoot(quotelink, isBacklink), inline);
root = QuoteInline.findRoot(quotelink, isBacklink);
$.after(root, inline);
qroot = $.x('ancestor::*[contains(@class,"postContainer")][1]', root);
$.addClass(qroot, 'hasInline');
Get.postClone(boardID, threadID, postID, inline, context);
if (!((post = g.posts["" + boardID + "." + postID]) && context.thread === post.thread)) {
return;

View File

@ -54,7 +54,12 @@ QuoteInline =
inline = $.el 'div',
id: "i#{postID}"
className: 'inline'
$.after QuoteInline.findRoot(quotelink, isBacklink), inline
root = QuoteInline.findRoot(quotelink, isBacklink)
$.after root, inline
qroot = $.x 'ancestor::*[contains(@class,"postContainer")][1]', root
$.addClass qroot, 'hasInline'
Get.postClone boardID, threadID, postID, inline, context
return unless (post = g.posts["#{boardID}.#{postID}"]) and