fix eslint complaints

This commit is contained in:
Isaac Connor 2019-01-19 12:40:17 -05:00
parent a1a42345e3
commit f69b77e38f
1 changed files with 12 additions and 12 deletions

View File

@ -1,15 +1,15 @@
function validateForm(form) {
var errors = [];
if ( !form.elements['newStorage[Name]'].value ) {
errors[errors.length] = "You must supply a name";
}
if ( !form.elements['newStorage[Path]'].value ) {
errors[errors.length] = "You must supply a path";
}
if ( errors.length ) {
alert( errors.join( "\n" ) );
return( false );
}
return( true );
var errors = [];
if ( !form.elements['newStorage[Name]'].value ) {
errors[errors.length] = 'You must supply a name';
}
if ( !form.elements['newStorage[Path]'].value ) {
errors[errors.length] = 'You must supply a path';
}
if ( errors.length ) {
alert(errors.join("\n"));
return false;
}
return true;
}