2014-10-20, 08:28
Tutorial: jQuery message deletion |
With this script, you'll be able to delete your posts within a second. (No extra windows for confirmation, no waiting)
--> Tutorials, tips and tricks <--
jQuery message deletion
jQuery message deletion
1º - Javascript
Placement: In the Topic
- Code:
[panda=js] // Shek
jQuery(function () {
jQuery(".post a[href*='mode=delete'][href*='p='][href*='tid=']").click(function (a) {
a.preventDefault();
var shek_delet = jQuery(this).closest(".post"); !0 == confirm("Delete this message?") && jQuery.post(this.href, {confirm: 1}, function (a) {shek_delet.slideUp(function () { shek_delet.remove();
// Topic redirection
jQuery(".main-content.topic .post").length || location.replace(jQuery(".nav[href^='/f']:last")[0].href)
})})});});
2º - Preview
© PunBB Design
If you have any questions related to this topic create a topic with the following title: jQuery message deletion |