diff options
Diffstat (limited to 'admin/WebConsole/comandos/jscripts/InventarioSoftware.js')
-rw-r--r-- | admin/WebConsole/comandos/jscripts/InventarioSoftware.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/admin/WebConsole/comandos/jscripts/InventarioSoftware.js b/admin/WebConsole/comandos/jscripts/InventarioSoftware.js index 4910d047..ad6a42c1 100644 --- a/admin/WebConsole/comandos/jscripts/InventarioSoftware.js +++ b/admin/WebConsole/comandos/jscripts/InventarioSoftware.js @@ -8,10 +8,10 @@ // Este fichero implementa las funciones javascript del fichero InventarioHardware.php (Comandos) // ************************************************************************************************************************************************* function confirmar(){ + var diskPart=[]; if (comprobar_datos()){ - tb_conf=document.getElementById("tabla_conf"); + var tb_conf=document.getElementById("tabla_conf"); var ochecks=tb_conf.getElementsByTagName('INPUT'); - var particion; for(var i=0;i<ochecks.length;i++){ if(ochecks[i].checked){ diskPart=ochecks[i].value.split(";"); @@ -32,14 +32,14 @@ } //________________________________________________________________________________________________________ function comprobar_datos(){ - tb_conf=document.getElementById("tabla_conf"); + var tb_conf=document.getElementById("tabla_conf"); var ochecks=tb_conf.getElementsByTagName('INPUT'); var op=0; for(var i=0;i<ochecks.length;i++){ if(ochecks[i].checked) op++; } - if(op==0){ + if(op===0){ alert(TbMsg[1]); return(false); } |