hasInline
This commit is contained in:
parent
a9efc9d79d
commit
7270c8060a
@ -3796,14 +3796,17 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
add: function(quotelink, boardID, threadID, postID, context) {
|
add: function(quotelink, boardID, threadID, postID, context) {
|
||||||
var inline, isBacklink, post;
|
var inline, isBacklink, post, qroot, root;
|
||||||
|
|
||||||
isBacklink = $.hasClass(quotelink, 'backlink');
|
isBacklink = $.hasClass(quotelink, 'backlink');
|
||||||
inline = $.el('div', {
|
inline = $.el('div', {
|
||||||
id: "i" + postID,
|
id: "i" + postID,
|
||||||
className: 'inline'
|
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);
|
Get.postClone(boardID, threadID, postID, inline, context);
|
||||||
if (!((post = g.posts["" + boardID + "." + postID]) && context.thread === post.thread)) {
|
if (!((post = g.posts["" + boardID + "." + postID]) && context.thread === post.thread)) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
@ -3792,14 +3792,17 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
add: function(quotelink, boardID, threadID, postID, context) {
|
add: function(quotelink, boardID, threadID, postID, context) {
|
||||||
var inline, isBacklink, post;
|
var inline, isBacklink, post, qroot, root;
|
||||||
|
|
||||||
isBacklink = $.hasClass(quotelink, 'backlink');
|
isBacklink = $.hasClass(quotelink, 'backlink');
|
||||||
inline = $.el('div', {
|
inline = $.el('div', {
|
||||||
id: "i" + postID,
|
id: "i" + postID,
|
||||||
className: 'inline'
|
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);
|
Get.postClone(boardID, threadID, postID, inline, context);
|
||||||
if (!((post = g.posts["" + boardID + "." + postID]) && context.thread === post.thread)) {
|
if (!((post = g.posts["" + boardID + "." + postID]) && context.thread === post.thread)) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
@ -3794,14 +3794,17 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
add: function(quotelink, boardID, threadID, postID, context) {
|
add: function(quotelink, boardID, threadID, postID, context) {
|
||||||
var inline, isBacklink, post;
|
var inline, isBacklink, post, qroot, root;
|
||||||
|
|
||||||
isBacklink = $.hasClass(quotelink, 'backlink');
|
isBacklink = $.hasClass(quotelink, 'backlink');
|
||||||
inline = $.el('div', {
|
inline = $.el('div', {
|
||||||
id: "i" + postID,
|
id: "i" + postID,
|
||||||
className: 'inline'
|
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);
|
Get.postClone(boardID, threadID, postID, inline, context);
|
||||||
if (!((post = g.posts["" + boardID + "." + postID]) && context.thread === post.thread)) {
|
if (!((post = g.posts["" + boardID + "." + postID]) && context.thread === post.thread)) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
@ -54,7 +54,12 @@ QuoteInline =
|
|||||||
inline = $.el 'div',
|
inline = $.el 'div',
|
||||||
id: "i#{postID}"
|
id: "i#{postID}"
|
||||||
className: 'inline'
|
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
|
Get.postClone boardID, threadID, postID, inline, context
|
||||||
|
|
||||||
return unless (post = g.posts["#{boardID}.#{postID}"]) and
|
return unless (post = g.posts["#{boardID}.#{postID}"]) and
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user