diff options
author | Ramón M. Gómez <ramongomez@us.es> | 2019-02-21 10:33:01 +0100 |
---|---|---|
committer | Ramón M. Gómez <ramongomez@us.es> | 2019-02-21 10:33:01 +0100 |
commit | 215cd243c9dd1a1d2f486f81ef6419e4cd13200a (patch) | |
tree | 1d809f271fc590a11e408e531d5977045aeedff5 /admin/WebConsole/comandos/jscripts/InventarioSoftware.js | |
parent | 157b7d39d7b923335f1df2aa56dc911123a0b8cd (diff) |
#834: Fix Javascript comparisons and variable declarations.
Diffstat (limited to 'admin/WebConsole/comandos/jscripts/InventarioSoftware.js')
-rw-r--r-- | admin/WebConsole/comandos/jscripts/InventarioSoftware.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/admin/WebConsole/comandos/jscripts/InventarioSoftware.js b/admin/WebConsole/comandos/jscripts/InventarioSoftware.js index 103292d2..ad6a42c1 100644 --- a/admin/WebConsole/comandos/jscripts/InventarioSoftware.js +++ b/admin/WebConsole/comandos/jscripts/InventarioSoftware.js @@ -8,8 +8,9 @@ // 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'); for(var i=0;i<ochecks.length;i++){ if(ochecks[i].checked){ @@ -31,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); } |