Actualizar cabecera.js
This commit is contained in:
@@ -1,8 +1,14 @@
|
||||
let idUsuarioSesion = null;
|
||||
|
||||
|
||||
$(document).ready(function () {
|
||||
// Carga la cabecera html
|
||||
$("#cabecera-container").load("cabecera.html", function () {
|
||||
// Después de cargar cabecera comprobamos sesión
|
||||
comprobarSesion();
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
// Función auxiliar para escapar texto HTML
|
||||
function escapeHTML(str) {
|
||||
@@ -204,3 +210,4 @@ $(document).on("click", "#botonCerrarSesion", function (event) {
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user