6 Commits

3 changed files with 1483 additions and 1395 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
<?php
require_once $_SERVER['DOCUMENT_ROOT'] . '/triviagmatico/includes/conexionBD.php';
require_once __DIR__ . '/../includes/conexionBD.php';
class Categoria{
+6 -6
View File
@@ -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();
}
});
});
File diff suppressed because it is too large Load Diff