fix eslint complaints
This commit is contained in:
parent
a1a42345e3
commit
f69b77e38f
|
@ -1,15 +1,15 @@
|
||||||
|
|
||||||
function validateForm(form) {
|
function validateForm(form) {
|
||||||
var errors = [];
|
var errors = [];
|
||||||
if ( !form.elements['newStorage[Name]'].value ) {
|
if ( !form.elements['newStorage[Name]'].value ) {
|
||||||
errors[errors.length] = "You must supply a name";
|
errors[errors.length] = 'You must supply a name';
|
||||||
}
|
}
|
||||||
if ( !form.elements['newStorage[Path]'].value ) {
|
if ( !form.elements['newStorage[Path]'].value ) {
|
||||||
errors[errors.length] = "You must supply a path";
|
errors[errors.length] = 'You must supply a path';
|
||||||
}
|
}
|
||||||
if ( errors.length ) {
|
if ( errors.length ) {
|
||||||
alert( errors.join( "\n" ) );
|
alert(errors.join("\n"));
|
||||||
return( false );
|
return false;
|
||||||
}
|
}
|
||||||
return( true );
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue