Remove obsolete complexities in embedding code.
This commit is contained in:
parent
7e5d71f210
commit
e5a0213461
@ -59,12 +59,10 @@ Embedding =
|
||||
$.after link, [$.tn(' '), embed]
|
||||
|
||||
if Conf['Auto-embed'] and !Conf['Floating Embeds'] and !post.isFetchedQuote
|
||||
autoEmbed = ->
|
||||
if doc.contains(embed) and not $.hasClass(doc, 'catalog-mode')
|
||||
$.off d, 'PostsInserted', autoEmbed
|
||||
Embedding.cb.toggle.call embed
|
||||
$.on d, 'PostsInserted', autoEmbed
|
||||
autoEmbed()
|
||||
if $.hasClass(doc, 'catalog-mode')
|
||||
$.addClass embed, 'embed-removed'
|
||||
else
|
||||
Embedding.cb.toggle.call embed
|
||||
|
||||
ready: ->
|
||||
return if !Main.isThisPageLegit()
|
||||
|
||||
@ -2033,9 +2033,7 @@ a:only-of-type > .remove {
|
||||
}
|
||||
|
||||
/* Embedding */
|
||||
.embedder:not(.embedded) > span,
|
||||
:root.catalog-mode .embedder > span,
|
||||
:root.catalog-mode .board .media-embed {
|
||||
.embedder:not(.embedded) > span {
|
||||
display: none;
|
||||
}
|
||||
#embedding {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user