MediaWiki:Gadget-ConfirmWikiForum.js

/* Require confirmation before deleting forum theads and posts */

(function {	$('img[title="Delete thread"]').click(function(event) { if (confirm('Are you sure you want to delete this thread?')) return; event.preventDefault; });	$('img[title="Delete reply"]').click(function(event) { if (confirm('Are you sure you want to delete this reply?')) return; event.preventDefault; }); });