hasInline
This commit is contained in:
parent
a9efc9d79d
commit
7270c8060a
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user