summaryrefslogtreecommitdiffstats
path: root/admin/WebConsole/asistentes
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2018-03-01 13:25:34 +0000
committerramon <ramongomez@us.es>2018-03-01 13:25:34 +0000
commit74c410a25ac543498b6164e771aa1253a656c45e (patch)
treebc30ce4b473981fc5033bf0ef6549c0a6caf2cc2 /admin/WebConsole/asistentes
parente7bfe29833f02de1bade286524cff5d6cd325b39 (diff)
#834: Eliminar etiquetas y código redundante en JavaScript.
git-svn-id: https://opengnsys.es/svn/branches/version1.1@5632 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'admin/WebConsole/asistentes')
-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;
}