Fixed usage of smileys in spoiler bbcode titles
authorMarcel Werk <burntime@woltlab.com>
Mon, 23 Nov 2015 23:07:07 +0000 (00:07 +0100)
committerMarcel Werk <burntime@woltlab.com>
Mon, 23 Nov 2015 23:07:07 +0000 (00:07 +0100)
com.woltlab.wcf/templates/spoilerBBCodeTag.tpl

index a4d4ee24b08eedebf649680b049b28451fbec4df..8b29a6134a68c0ea8f36bc0eaf9be718acc5ac3d 100644 (file)
@@ -1,7 +1,7 @@
 <!-- begin:parser_nonessential -->
 <div class="container containerPadding spoilerBox jsSpoilerBox">
        <header class="jsOnly">
-               <a class="button jsSpoilerToggle"{if $buttonTitle} data-button-title="{$buttonTitle}"{/if}>{if $buttonTitle}{@$buttonTitle}{else}{lang}wcf.bbcode.spoiler.show{/lang}{/if}</a>
+               <a class="button jsSpoilerToggle"{if $buttonTitle} data-has-custom-label="true"{/if}>{if $buttonTitle}{@$buttonTitle}{else}{lang}wcf.bbcode.spoiler.show{/lang}{/if}</a>
        </header>
        
        <div style="display: none">
@@ -24,7 +24,7 @@
                                                                WCF.DOMNodeInsertedHandler.execute();
                                                        }
                                                        
-                                                       if (!$toggle.data('buttonTitle')) {
+                                                       if (!$toggle.data('hasCustomLabel')) {
                                                                if ($container.is(':visible')) {
                                                                        $toggle.text('{lang}wcf.bbcode.spoiler.hide{/lang}');
                                                                }