1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-21 19:31:28 +00:00

cleanup markup in some plugins, make nsfw generate dijit widgets

This commit is contained in:
Andrew Dolgov
2021-02-16 22:07:37 +03:00
parent 89e8176c69
commit 0fc783e2b3
5 changed files with 82 additions and 90 deletions

View File

@@ -1,7 +1,12 @@
function nsfwShow(elem) {
let content = elem.parentNode.getElementsBySelector("div.nswf.content")[0];
/* global Plugins */
if (content) {
Element.toggle(content);
Plugins.NSFW = {
toggle: function(elem) {
const content = elem.domNode.parentNode.querySelector(".nswf.content");
if (content) {
Element.toggle(content);
}
}
}