Sha256: 4f49c2214d2ec0c4a27ea93eb0eaf4b3bfd10baf7b5b9a33dae058d1e16a471f

Contents?: true

Size: 643 Bytes

Versions: 4

Compression:

Stored size: 643 Bytes

Contents

//ResetForm validation
$(function() {
	if (!$('#reset-form').length) {
        return false;
    }

    var resetValidationSettings = {
	    rules: {
	        email1: {
	            required: true,
	            email: true
	        }
	    },
	    messages: {
	        email1: {
	            required: "Please enter email address",
	            email: "Please enter a valid email address"
	        }
	    },
	    invalidHandler: function() {
			animate({
				name: 'shake',
				selector: '.auth-container > .card'
			});
		}
	}

	$.extend(resetValidationSettings, config.validations);

    $('#reset-form').validate(resetValidationSettings);
})

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rails_modular_admin-0.2.4 app/assets/javascripts/rails_modular_admin/auth/reset/reset.js
rails_modular_admin-0.2.3 app/assets/javascripts/rails_modular_admin/auth/reset/reset.js
rails_modular_admin-0.2.2 app/assets/javascripts/rails_modular_admin/auth/reset/reset.js
rails_modular_admin-0.2.0 app/assets/javascripts/rails_modular_admin/auth/reset/reset.js