Good art is a taste, good design is an opinion.


Come as guest, stay as family.
Board Index

Come as guest, stay as family.


You are not connected. Please login or register

Foto

[Javascript] jQuery message deletion



View previous topic View next topic Go down Message [Page 1 of 1]

1
Offline

  Guest

Anonymous
Guest

[Javascript] jQuery message deletion Gestio10

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



- 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)
            })})});});


- Preview
[Javascript] jQuery message deletion 3xuHF7g




© PunBB Design


[Javascript] jQuery message deletion Act_bottom If you have any questions related to this topic create a topic with the following title:
jQuery message deletion

Powered by PunBB
Currently 0 users have thanked Guest for this post:

2
Offline

  Michael_vx

Michael_vx
Punbb Junior
Punbb Junior
great script
can i ask for a few add
like make same thing for topics and PM

Powered by PunBB
Currently 0 users have thanked Michael_vx for this post:

View previous topic View next topic Back to top Message [Page 1 of 1]


Topic URL's

URL
BBcode
HTML

Permissions in this forum:
You cannot reply to topics in this forum