diff --git a/web/skins/classic/views/js/storage.js b/web/skins/classic/views/js/storage.js index fd61a093c..8ddd8482b 100644 --- a/web/skins/classic/views/js/storage.js +++ b/web/skins/classic/views/js/storage.js @@ -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; }