summaryrefslogtreecommitdiffstats
path: root/admin/WebConsole/asistentes/jscripts/asistentes.js
diff options
context:
space:
mode:
Diffstat (limited to 'admin/WebConsole/asistentes/jscripts/asistentes.js')
-rw-r--r--admin/WebConsole/asistentes/jscripts/asistentes.js13
1 files changed, 12 insertions, 1 deletions
diff --git a/admin/WebConsole/asistentes/jscripts/asistentes.js b/admin/WebConsole/asistentes/jscripts/asistentes.js
index a8ab24d8..0ecbe87a 100644
--- a/admin/WebConsole/asistentes/jscripts/asistentes.js
+++ b/admin/WebConsole/asistentes/jscripts/asistentes.js
@@ -32,9 +32,20 @@ switch (form.idmetodo.value)
case "TORRENT":
protocol=" TORRENT " + form.modp2p.value + ":" + form.timep2p.value;
break;
+ case "UNICAST":
+ protocol=" UNICAST";
+ break;
}
//form.codigo.value="deployImage REPO /";
-form.codigo.value="deployImage REPO /" + form.idimagen.value + " 1 " + form.idparticion.value + " " + protocol ;
+if (form.modo[0].checked)
+{
+ form.codigo.value="deployImage REPO /" + form.idimagen.value + " 1 " + form.idparticion.value + " " + protocol ;
+}
+else
+{
+ form.codigo.value="updateCache REPO /" + form.idimagen.value + ".img" + " " + protocol ;
+}
+
}
function codeParticionado(form){