custom_validators.js

About this file

The function in this file uses Parsley to add a validator named maxFileSize and assigns the validator a type and an error message.

Code Issues

  • The custom validator for checking max file size needs a comment specifying the purpose of that validator.

Code Check Report




  10:29  error  Expected '!==' and instead saw '!='  eqeqeq

✖ 1 problem (1 error, 0 warnings)
                        

Documentation drawn from source code

/**
* Created by atan on 9/27/16.
*/
  validateString: function (_value, maxSize, parsleyInstance) {
  validateString: function (value) {
  validateString: function (value) {
  validateString: function (value) {
  validateString: function (value) {

Source code