07-16-2022, 06:51 PM
0
De esta manera, al hacer clic en "Cancelar", se enviará una solicitud para eliminar el archivo cargado y se desactivará la opción de cerrar la ventana "modal" o recortada al hacer clic en el fondo negro.
En cuenta.js --> themes --> default --> js --> cuenta.js
Buscar:
Debajo agregar:
Buscar:
Debajo agregar:
En ajax.upload.php --> inc --> php --> ajax --> ajax.upload.php
Buscar:
Debajo agregar:
Creditos: Debes agradecer para ver el contenido...
En cuenta.js --> themes --> default --> js --> cuenta.js
Buscar:
Código PHP: ( Seleccionar Todo )
if (avatar.success) {
avatar.success = false;
var img_url = global_data.url + '/files/avatar/' + avatar.uid + '_120.jpg?reload=true';
$('#avatar-img').attr({'src': img_url}).fadeIn();
$('div.avatar-loading').hide();
}
Debajo agregar:
Código PHP: ( Seleccionar Todo )
else {
$.ajax({type: 'post', url: global_data.url + '/upload-delete.php', data: 'key='+avatar.key+'&ext=' + avatar.ext});
}
Buscar:
Código PHP: ( Seleccionar Todo )
$('#modalBody').css('padding', 0);
Debajo agregar:
Código PHP: ( Seleccionar Todo )
$('#mask').unbind('click');
En ajax.upload.php --> inc --> php --> ajax --> ajax.upload.php
Buscar:
Código PHP: ( Seleccionar Todo )
case 'upload-images':
echo $tsCore->setJSON($tsUpload->newUpload(1));
break;
Debajo agregar:
Código PHP: ( Seleccionar Todo )
case 'upload-delete':
$image = 'phpost_'.$_POST['key'].'.'.$_POST['ext'];
$tsUpload->deleteFile($image);
break;
Creditos: Debes agradecer para ver el contenido...


Facebook
Twitter
Reddit
Digg
del.icio.us
Tumblr
Pinterest
Blogger
Fark
LinkedIn
Mix
Google