Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| d20b1fa7d7 | |||
| bdc7bef169 | |||
| 963ab50f37 |
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
require_once $_SERVER['DOCUMENT_ROOT'] . '/triviagmatico/includes/conexionBD.php';
|
||||
|
||||
require_once __DIR__ . '/../includes/conexionBD.php';
|
||||
|
||||
class Categoria{
|
||||
|
||||
|
||||
+6
-6
@@ -50,10 +50,9 @@ function cambiarNombre() {
|
||||
$("#nuevoNombre").val("");
|
||||
|
||||
|
||||
if (typeof comprobarEstadoSesion === "function") {
|
||||
comprobarEstadoSesion();
|
||||
}
|
||||
comprobarSesion();
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
@@ -71,6 +70,7 @@ function borrarNombre() {
|
||||
|
||||
function seleccionarFoto() {
|
||||
$("#inputFoto").click();
|
||||
|
||||
}
|
||||
|
||||
$("#inputFoto").change(function () {
|
||||
@@ -79,6 +79,7 @@ $("#inputFoto").change(function () {
|
||||
if (!archivo) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
// Comprobamos que sea una imagen
|
||||
if (!archivo.type.startsWith("image/")) {
|
||||
@@ -110,9 +111,8 @@ $("#inputFoto").change(function () {
|
||||
);
|
||||
|
||||
// Actualizamos también el avatar superior en la cabecera
|
||||
if (typeof comprobarEstadoSesion === "function") {
|
||||
comprobarEstadoSesion();
|
||||
}
|
||||
|
||||
comprobarSesion();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user