diff options
author | Bryce Johnson <bryce@gitlab.com> | 2016-11-02 13:35:21 +0300 |
---|---|---|
committer | Bryce Johnson <bryce@gitlab.com> | 2016-11-02 13:35:21 +0300 |
commit | d939fbed0953be5e19308ec7dc7832cfd1d38160 (patch) | |
tree | 1edbbb9c9b952f418d65695daa1b10c011e5e9f5 /app/assets | |
parent | b193531b39fb8299477af1413c1861f00d7105b8 (diff) |
Change show-gl-field-errors to gl-show-field-errors
Diffstat (limited to 'app/assets')
-rw-r--r-- | app/assets/javascripts/dispatcher.js.es6 | 2 | ||||
-rw-r--r-- | app/assets/javascripts/gl_field_error.js.es6 | 8 | ||||
-rw-r--r-- | app/assets/stylesheets/framework/forms.scss | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/app/assets/javascripts/dispatcher.js.es6 b/app/assets/javascripts/dispatcher.js.es6 index ff8b8f6d0ae..8e4fd1f19ba 100644 --- a/app/assets/javascripts/dispatcher.js.es6 +++ b/app/assets/javascripts/dispatcher.js.es6 @@ -299,7 +299,7 @@ }; Dispatcher.prototype.initFieldErrors = function() { - $('.show-gl-field-errors').each((i, form) => { + $('.gl-show-field-errors').each((i, form) => { new gl.GlFieldErrors(form); }); }; diff --git a/app/assets/javascripts/gl_field_error.js.es6 b/app/assets/javascripts/gl_field_error.js.es6 index 9047de645f5..12ea69da165 100644 --- a/app/assets/javascripts/gl_field_error.js.es6 +++ b/app/assets/javascripts/gl_field_error.js.es6 @@ -3,7 +3,7 @@ /* * This class overrides the browser's validation error bubbles, displaying custom * error messages for invalid fields instead. To begin validating any form, add the - * class `show-gl-field-errors` to the form element, and ensure error messages are + * class `gl-show-field-errors` to the form element, and ensure error messages are * declared in each inputs' `title` attribute. If no title is declared for an invalid * field the user attempts to submit, "This field is required." will be shown by default. * @@ -16,13 +16,13 @@ * * Basic: * - * <form class='show-gl-field-errors'> + * <form class='gl-show-field-errors'> * <input type='text' name='username' title='Username is required.'/> * </form> * * Ignore specific inputs (e.g. UsernameValidator): * - * <form class='show-gl-field-errors'> + * <form class='gl-show-field-errors'> * <div class="form-group> * <input type='text' class='gl-field-errors-ignore' pattern='[a-zA-Z0-9-_]+'/> * </div> @@ -33,7 +33,7 @@ * * Custom Error Anchor (allows error message to be injected after specified element): * - * <form class='show-gl-field-errors'> + * <form class='gl-show-field-errors'> * <div class="form-group gl-field-error-anchor"> * <input type='text' name='username' title='Username is required.'/> * // Error message typically injected here diff --git a/app/assets/stylesheets/framework/forms.scss b/app/assets/stylesheets/framework/forms.scss index 514d0868ba1..f0727e9688a 100644 --- a/app/assets/stylesheets/framework/forms.scss +++ b/app/assets/stylesheets/framework/forms.scss @@ -136,7 +136,7 @@ label { color: $red-normal; } -.show-gl-field-errors { +.gl-show-field-errors { .gl-field-success-outline { border: 1px solid $green-normal; |