Código Javascript:
Ver original
<script> function deleteFile(fname,directory,deletecount) { $("a.ico-edit").live("click",function(event){ event.stopPropagation(); if(confirm("Do you want to delete?")) { this.click; alert("Ok"); $.ajax({ url: "delete_img.php", data: {"file":fname,"directory":directory}, type: 'post', success: function(output) { alert(output); $('#' + deletescount).remove(); } }); } else { alert("Cancel"); } event.preventDefault(); }); }); </script>