From 6c08a3f50101749c4aa003053b5e9ef78654e68d Mon Sep 17 00:00:00 2001 From: Irina Gómez Date: Thu, 13 Aug 2020 19:52:15 +0200 Subject: # 969 The labs tree is adapted to jquery: principal/aulas.php: the context menu uses identifiers for jquery. jscripts/arbol.js and jscripts/comunes.js: common functions include labs and computers. jscripts/aulas.js: new specific laboratory and computer functions. includes/arbol.php: the context menu call is modified to suit the case of computers. --- admin/WebConsole/includes/arbol.php | 26 +++- admin/WebConsole/jscripts/arbol.js | 19 ++- admin/WebConsole/jscripts/aulas.js | 294 +++++++++++++++++++++++++++++++++++ admin/WebConsole/jscripts/comunes.js | 36 +++-- admin/WebConsole/principal/aulas.php | 146 ++++++++--------- 5 files changed, 423 insertions(+), 98 deletions(-) diff --git a/admin/WebConsole/includes/arbol.php b/admin/WebConsole/includes/arbol.php index c2e65735..1f585681 100644 --- a/admin/WebConsole/includes/arbol.php +++ b/admin/WebConsole/includes/arbol.php @@ -130,13 +130,19 @@ function lista_grupo_arbol($tipo_nodo, $tipo, $idgrupo, $nivel, $orden, $nodos, global $grp_ordenadores; global $idaulas; } + // Los ordenadores tiene como tipo de nodo el idaula. El menú debe tener un sufijo fijo: + $sufijo_menu=$tipo; + if ($tipo_nodo == "ordenadores") { + global $AMBITO_GRUPOSORDENADORES; + $sufijo_menu=$AMBITO_GRUPOSORDENADORES; + } echo "\n".'