Naja, am besten ist es wenn du dir eine eigene JavaScript Datei erstellst und eine neue Class erzeugst und diese dann aufrufst ![]()
JavaScript
$('.jsDeletePost').click(function () {
var post = $(this);
var $template = $('<fieldset><dl></dl></fieldset>');
$('<dt><label for="postTrashReason">' + WCF.Language.get('wbb.post.edit.trash.reason') + '</label></dt>').appendTo($template.children('dl'));
$('<dd><textarea id="postTrashReason" name="reason" cols="40" rows="3" /></dd>').appendTo($template.children('dl'));
WCF.System.Confirmation.show(WCF.Language.get('wbb.post.edit.trash.confirmMessage'), $.proxy(function (action) {
if (action === 'confirm') {
$postHandler.update(post.data('postID'), 'trash', { reason: $('#postTrashReason').val() }, function() { new WCF.System.Notification().show(); });
}
}, this), '', $template);
});
Alles anzeigen
Diesen Code fügst du in das Template thread.tpl ein in die Zeile 97.
Unter folgenden Code
new WBB.Post.InlineEditor({@$thread->threadID}, $postHandler, $quoteManager);