$(function() {
var $spoilerBox = $('.jsSpoilerBox').removeClass('jsSpoilerBox');
$spoilerBox.find('> header > .jsSpoilerToggle').click(function() {
- $(this).toggleClass('active').parent().next().slideToggle({
+ var $spoilerToggle = $(this);
+ $spoilerToggle.toggleClass('active').parent().next().slideToggle({
complete: function() {
if ($(this).is(':visible')) {
WCF.DOMNodeInsertedHandler.execute();
}
+
+ {if !$buttonTitle}
+ if ($(this).is(':visible')) {
+ $spoilerToggle.text('{lang}wcf.bbcode.spoiler.hide{/lang}');
+ }
+ else {
+ $spoilerToggle.text('{lang}wcf.bbcode.spoiler.show{/lang}');
+ }
+ {/if}
}
});
});
});
//]]>
</script>
-<!-- end:parser_nonessential -->
\ No newline at end of file
+<!-- end:parser_nonessential -->
<item name="wcf.bbcode.code.xml.title"><![CDATA[XML-Quellcode]]></item>
<item name="wcf.bbcode.quote.title"><![CDATA[{@$quoteAuthor} schrieb:]]></item>
<item name="wcf.bbcode.quote.text"><![CDATA[Zitat{if $cite} von {@$cite}{/if}: „{@$content}“]]></item>
+ <item name="wcf.bbcode.spoiler.hide"><![CDATA[Spoiler ausblenden]]></item>
<item name="wcf.bbcode.spoiler.show"><![CDATA[Spoiler anzeigen]]></item>
<item name="wcf.bbcode.spoiler.text"><![CDATA[(Versteckter Text)]]></item>
</category>
<item name="wcf.bbcode.code.xml.title"><![CDATA[XML Source Code]]></item>
<item name="wcf.bbcode.quote.title"><![CDATA[{@$quoteAuthor} wrote:]]></item>
<item name="wcf.bbcode.quote.text"><![CDATA[Quote{if $cite} from {@$cite}{/if}: “{@$content}”]]></item>
+ <item name="wcf.bbcode.spoiler.hide"><![CDATA[Hide Spoiler]]></item>
<item name="wcf.bbcode.spoiler.show"><![CDATA[Show Spoiler]]></item>
<item name="wcf.bbcode.spoiler.text"><![CDATA[(Hidden Content)]]></item>
</category>