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.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/admin/WebConsole/asistentes/jscripts/asistentes.js b/admin/WebConsole/asistentes/jscripts/asistentes.js
index 383f19cc..5c257615 100644
--- a/admin/WebConsole/asistentes/jscripts/asistentes.js
+++ b/admin/WebConsole/asistentes/jscripts/asistentes.js
@@ -507,8 +507,6 @@ function getMaxCacheSize() {
maxSize = cacheSizeArray[i].value;
}
document.getElementById("maxcachesize").value = maxSize;
- return
-
}
@@ -516,8 +514,8 @@ function getMaxCacheSize() {
function validaCache (freedisk) {
var form = document.fdatos;
var maxcachesize = parseInt(document.getElementById("maxcachesize").value);
- if(form.part4.value == "CACHE" && form.check4.checked && form.size4.value == 0 ){
- return (freedisk - maxcachesize > 0 ? true : false);
+ if(form.part4.value === "CACHE" && form.check4.checked && form.size4.value == 0 ){
+ return ((freedisk - maxcachesize) > 0);
}
return true;
}