Skip to content

Commit babb9e2

Browse files
author
Diego Jara
committed
mensaje de validacion
1 parent 2a1a70d commit babb9e2

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

www/js/my-app.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,11 @@ function comprimirTexto(e) {
352352
e.preventDefault();
353353
var texto_a_comprimir = $$('#text-area-comprimir').val();
354354

355+
if (!/\S/.test(texto_a_comprimir)) {
356+
myApp.alert("No has ingresado ningún texto","¡Atención!");
357+
return;
358+
}
359+
355360
if (texto_a_comprimir == previous_input) {
356361
return true;
357362
}

0 commit comments

Comments
 (0)