mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-19 21:03:54 -07:00
Added support for attribute to ignoring auto spoilers opening (#1466)
* Added support for attribute to ignoring auto spoilers opening * Update CHANGELOG.md
This commit is contained in:
parent
f1f59cbd55
commit
65a7b89a9e
4 changed files with 7 additions and 3 deletions
|
@ -380,8 +380,9 @@ function initSpoilers(context) {
|
|||
$('div.sp-body', context).each(function () {
|
||||
var $sp_body = $(this);
|
||||
var name = $.trim(this.title) || '' + bbl['spoiler_head'] + '';
|
||||
var no_sp_open = ($.trim($sp_body.attr('no-sp-open')) === "true") ? ' ignore-sp-open' : '';
|
||||
this.title = '';
|
||||
var $sp_head = $('<div class="sp-head folded clickable">' + name + '</div>');
|
||||
var $sp_head = $('<div class="sp-head folded clickable' + no_sp_open + '">' + name + '</div>');
|
||||
$sp_head.insertBefore($sp_body).click(function (e) {
|
||||
if (!$sp_body.hasClass('inited')) {
|
||||
initPostImages($sp_body);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue