Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
f141cdb3
Commit
f141cdb3
authored
Oct 07, 2016
by
Bryce Johnson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixup invalid refs.
parent
bad1feb2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
app/assets/javascripts/dispatcher.js
app/assets/javascripts/dispatcher.js
+1
-1
app/assets/javascripts/gl_field_errors.js.es6
app/assets/javascripts/gl_field_errors.js.es6
+1
-1
No files found.
app/assets/javascripts/dispatcher.js
View file @
f141cdb3
...
@@ -297,7 +297,7 @@
...
@@ -297,7 +297,7 @@
Dispatcher
.
prototype
.
initFieldErrors
=
function
()
{
Dispatcher
.
prototype
.
initFieldErrors
=
function
()
{
var
flaggedForms
=
document
.
querySelectorAll
(
'
.show-gl-field-errors
'
);
var
flaggedForms
=
document
.
querySelectorAll
(
'
.show-gl-field-errors
'
);
return
[...
t
aggedForms
].
forEach
(
function
(
form
)
{
return
[...
fl
aggedForms
].
forEach
(
function
(
form
)
{
new
gl
.
GlFieldErrors
(
form
);
new
gl
.
GlFieldErrors
(
form
);
});
});
};
};
...
...
app/assets/javascripts/gl_field_errors.js.es6
View file @
f141cdb3
...
@@ -78,7 +78,7 @@
...
@@ -78,7 +78,7 @@
this.form.focusOnFirstInvalid.apply(this.form);
this.form.focusOnFirstInvalid.apply(this.form);
// For UX, wait til after first invalid submission to check each keyup
// For UX, wait til after first invalid submission to check each keyup
this.inputElement.off('keyup.field_validator')
this.inputElement.off('keyup.field_validator')
.on('keyup.field_validator', this.updateValidity
State
.bind(this));
.on('keyup.field_validator', this.updateValidity.bind(this));
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment