Procházet zdrojové kódy

Fadding animation when deleting a torrent

Antoine Leroyer před 11 roky
rodič
revize
70a868f2c9
1 změnil soubory, kde provedl 4 přidání a 2 odebrání
  1. 4 2
      public/js/custom.js

+ 4 - 2
public/js/custom.js

@@ -32,8 +32,10 @@ $(document).ready(function() {
       })
       .done(function( msg ) {
         if( msg == "OK" ) {
-          alertify.success("Torrent deleted !"); 
-          obj.parent().parent().remove();
+          obj.parent().parent().fadeOut("slow", function(){
+            alertify.success("Torrent deleted !");
+            obj.parent().parent().remove();
+          });
         } else {
           alertify.error("There is an error, I can't delete this torrent :(");
         }