fix delete message for styles
authorJoshua Rüsweg <josh@bastelstu.be>
Sun, 10 Jul 2016 13:54:06 +0000 (15:54 +0200)
committerJoshua Rüsweg <josh@bastelstu.be>
Sun, 10 Jul 2016 13:54:06 +0000 (15:54 +0200)
wcfsetup/install/files/acp/js/WCF.ACP.Style.js
wcfsetup/install/files/acp/templates/styleList.tpl

index 3db4ca2a0ea1ba046fa97ac810fc6cfe56ea0966..89da090285585880e61cb5ba9ff0bd8f8bd73d03 100644 (file)
@@ -356,7 +356,7 @@ WCF.ACP.Style.List = Class.extend({
         * @param       integer         styleID
         */
        _delete: function(event, styleID) {
-               var $confirmMessage = $(event.currentTarget).data('confirmMessage');
+               var $confirmMessage = $(event.currentTarget).data('confirmMessageHtml');
                if ($confirmMessage) {
                        var self = this;
                        WCF.System.Confirmation.show($confirmMessage, function(action) {
index bdff3363ad7ba29d2d46e299727eb26e4aa5dc3d..2bb44511bd913f93df8e0c34dc9b988dfff2a774 100644 (file)
@@ -62,7 +62,7 @@
                                                                {if !$style->isDefault}
                                                                        <li><span class="icon icon16 fa-{if !$style->isDisabled}check-{/if}square-o jsToggleButton jsTooltip pointer" title="{lang}wcf.global.button.{if $style->isDisabled}enable{else}disable{/if}{/lang}" data-object-id="{@$style->styleID}"></span></li>
                                                                        <li><a title="{lang}wcf.acp.style.button.setAsDefault{/lang}" class="jsSetAsDefault jsTooltip"><span class="icon icon16 fa-check-circle"></span></a></li>
-                                                                       <li><a title="{lang}wcf.global.button.delete{/lang}" class="jsDelete jsTooltip" data-confirm-message="{lang}wcf.acp.style.delete.confirmMessage{/lang}"><span class="icon icon16 fa-times"></span></a></li>
+                                                                       <li><a title="{lang}wcf.global.button.delete{/lang}" class="jsDelete jsTooltip" data-confirm-message-html="{lang __encode=true}wcf.acp.style.delete.confirmMessage{/lang}"><span class="icon icon16 fa-times"></span></a></li>
                                                                {/if}
                                                                
                                                                {event name='itemButtons'}