So sollte es gehen
Code
{if $board->canEditThreads() || $thread->getBoard()->getModeratorPermission('canClosePost') || $thread->getBoard()->getModeratorPermission('canDeletePost') || $thread->getBoard()->getModeratorPermission('canDeletePostCompletely') || $thread->getBoard()->getModeratorPermission('canEnablePost') || $thread->getBoard()->getModeratorPermission('canRestorePost')}
{assign var='canEditPostInline' value=true}
var $postClipboardHandler = new WBB.Post.Clipboard($postHandler);
$postClipboardHandler.setThreadUpdateHandler($updateHandler);
$('.jsDeleteThread').click(function () {
var self = $this;
WCF.System.Confirmation.show(WCF.Language.get('wbb.thread.confirmTrash'), function(action) {
if (action === 'confirm') {
$inlineEditor._updateThread(elementID, "trash", { isDeleted: 1, reason: $('#wcfSystemConfirmationContent').find('textarea').val() });
}
}, { }, $('<fieldset><dl><dt>' + WCF.Language.get('wbb.thread.confirmTrash.reason') + '</dt><dd><textarea cols="40" rows="4" /></dd></dl></fieldset>'));
});
});
{else}
{assign var='canEditPostInline' value=false}
{/if}
Alles anzeigen