Sha256: ce68f4a65b93253a2c0041efd4656143083e3c24fe588a1093ddffc05294b489

Contents?: true

Size: 320 Bytes

Versions: 1

Compression:

Stored size: 320 Bytes

Contents

(function() {
  var FormErrors = function() {
    this.render = function() {
      form().find('.field_with_errors input').addClass('is-invalid');
    };

    var form = function() {
      return $("form[data-style-form-errors='true']");
    };
  };

  $(document).ready(function() { new FormErrors().render() });
})();

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
attorney-1.0.0 app/assets/javascripts/attorney/form_errors.js