Modificar parámetro de función 'edit' para mejorar la claridad en la gestión de secciones
This commit is contained in:
@@ -451,11 +451,12 @@ Cargando...</pre
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
edit: function (section) {
|
edit: function (fsection) {
|
||||||
if (!checkRole('aulas')) {
|
if (!checkRole('aulas')) {
|
||||||
setUrlHash('index');
|
setUrlHash('index');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
var section = fsection.split(',')[0];
|
||||||
var item = location.hash.replace('#', '').split("?")[0].split(',')[2];
|
var item = location.hash.replace('#', '').split("?")[0].split(',')[2];
|
||||||
if (!item) {
|
if (!item) {
|
||||||
// No item, show section
|
// No item, show section
|
||||||
|
|||||||
Reference in New Issue
Block a user