diff options
author | ramon <ramongomez@us.es> | 2013-05-21 11:36:23 +0000 |
---|---|---|
committer | ramon <ramongomez@us.es> | 2013-05-21 11:36:23 +0000 |
commit | b2651a63576eec414f755325b90b340a9515aeff (patch) | |
tree | 0fd7938110052ef742b894cad4b65dcd966db930 /admin/WebConsole/comandos/jscripts/RestaurarImagen.js | |
parent | 40bba645f322485d9135abe8f6d3cd04c915cf26 (diff) |
#601: Integrar código del ticket:601 en rama de desarrollo.
git-svn-id: https://opengnsys.es/svn/branches/version1.0@3807 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'admin/WebConsole/comandos/jscripts/RestaurarImagen.js')
-rw-r--r-- | admin/WebConsole/comandos/jscripts/RestaurarImagen.js | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/admin/WebConsole/comandos/jscripts/RestaurarImagen.js b/admin/WebConsole/comandos/jscripts/RestaurarImagen.js index fd1061bf..91e7b3ea 100644 --- a/admin/WebConsole/comandos/jscripts/RestaurarImagen.js +++ b/admin/WebConsole/comandos/jscripts/RestaurarImagen.js @@ -10,15 +10,18 @@ function confirmar(){ if(comprobar_datos()){ var RC="@"; - var disco=1; // Siempre disco 1 - var atributos="dsk="+disco+RC; + // UHU - Ahora puede ser cualquier disco + var disco; + var atributos=""; 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 idradio=ochecks[i].id; - var numpar=ochecks[i].value; - + var idradio=ochecks[i].id; + var diskPart = ochecks[i].value.split(";"); + disco = diskPart[0]; + var numpar= diskPart[1]; + atributos+="dsk="+disco+RC; // Numero de disco atributos+="par="+numpar+RC; // Número de partición var despleimagenizda=document.getElementById("despleimagen_"+idradio+"_1"); var despleimagendrcha=document.getElementById("despleimagen_"+idradio+"_0"); |