Modificar parámetro de función 'edit' para mejorar la claridad en la gestión de secciones

This commit is contained in:
Naiel
2026-02-23 14:38:26 +00:00
parent 543d1c3202
commit 74afb2a499

View File

@@ -451,11 +451,12 @@ Cargando...</pre
}
};
},
edit: function (section) {
edit: function (fsection) {
if (!checkRole('aulas')) {
setUrlHash('index');
return;
}
var section = fsection.split(',')[0];
var item = location.hash.replace('#', '').split("?")[0].split(',')[2];
if (!item) {
// No item, show section