User:Canadabonk/common.js: Difference between revisions

Content added Content deleted
No edit summary
No edit summary
Line 27: Line 27:
});
});
$('body').not('.ct-stickytoc').click(function() {
window.onclick = function(event) {
if (! stickytoc.attr('style')) {
if (!event.target.matches('ct-stickytoc').children && !stickytoc.attr('style')) {
stickytoc.fadeOut(200);
stickytoc.fadeOut(200);
}
}
});
};
}
}