diff options
author | Ramón M. Gómez <ramongomez@us.es> | 2019-01-18 11:24:07 +0100 |
---|---|---|
committer | Ramón M. Gómez <ramongomez@us.es> | 2019-01-18 11:25:31 +0100 |
commit | d5b9f8932d8081060c2d9d216fc851e4fde22bfe (patch) | |
tree | 72a967140b75fefb295ed4c8df7a8e9c4a049e4c /admin/WebConsole/comandos | |
parent | 4797e934a19518d251d1e3e174d6f11b0ade2a03 (diff) |
#806: Show error message when partition size < 0 (thanks to Javier Sanchez, jsanchez@soleta.eu).
Diffstat (limited to 'admin/WebConsole/comandos')
-rw-r--r-- | admin/WebConsole/comandos/jscripts/Configurar.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/admin/WebConsole/comandos/jscripts/Configurar.js b/admin/WebConsole/comandos/jscripts/Configurar.js index 38f17a15..70f9219c 100644 --- a/admin/WebConsole/comandos/jscripts/Configurar.js +++ b/admin/WebConsole/comandos/jscripts/Configurar.js @@ -133,6 +133,12 @@ function comprobarDatos(cc) var tama=trCfg.childNodes[itama].childNodes[0].value; // Tamaño de partición + // Comprobar tamaño negativo. + if (tama < 0) { + alert(TbMsg[8]); + trCfg.childNodes[ipar].childNodes[0].focus(); + return(false); + } var par=tomavalorDesple(trCfg.childNodes[ipar].childNodes[0]); // Partición npar=parseInt(par); |