summaryrefslogtreecommitdiffstats
path: root/admin/WebConsole/comandos/jscripts/IniciarSesion.js
diff options
context:
space:
mode:
authorRamón M. Gómez <ramongomez@us.es>2019-02-21 10:33:01 +0100
committerRamón M. Gómez <ramongomez@us.es>2019-02-21 10:33:01 +0100
commit215cd243c9dd1a1d2f486f81ef6419e4cd13200a (patch)
tree1d809f271fc590a11e408e531d5977045aeedff5 /admin/WebConsole/comandos/jscripts/IniciarSesion.js
parent157b7d39d7b923335f1df2aa56dc911123a0b8cd (diff)
#834: Fix Javascript comparisons and variable declarations.
Diffstat (limited to 'admin/WebConsole/comandos/jscripts/IniciarSesion.js')
-rw-r--r--admin/WebConsole/comandos/jscripts/IniciarSesion.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/admin/WebConsole/comandos/jscripts/IniciarSesion.js b/admin/WebConsole/comandos/jscripts/IniciarSesion.js
index cbd1cf69..9fe4d525 100644
--- a/admin/WebConsole/comandos/jscripts/IniciarSesion.js
+++ b/admin/WebConsole/comandos/jscripts/IniciarSesion.js
@@ -20,13 +20,13 @@ function confirmar(){
filtrado();
var ipfiltro=document.fdatosejecucion.filtro.value;
// Compone atributos del comando
- 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){
var diskPart = ochecks[i].value.split(";");
var disco = diskPart[0];
- var numpar= diskPart[1];
+ var numpar= diskPart[1];
atributos+="dsk="+disco+RC;
atributos+="par="+numpar+RC;
// Datos bloque de configuracion: ip equipos.
@@ -35,12 +35,12 @@ function confirmar(){
var iptabla=tbOrd.getAttribute('value');
// Elimino los ordenadores del filtro que no estén en la tabla.
- if (ipfiltro!=''){
+ if (ipfiltro!==''){
var arraytabla = iptabla.split(",");
var arrayfiltro =ipfiltro.split(";");
arrayfiltro = array_interset (arrayfiltro.sort(), arraytabla.sort());
ipfiltro = arrayfiltro.join(";");
- if (ipfiltro ==''){
+ if (ipfiltro===''){
alert(TbMsg["FILTER"]);
return(false);
}
@@ -68,13 +68,13 @@ function confirmar(){
//________________________________________________________________________________________________________
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);
}