Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
06e7e18d
Unverified
Commit
06e7e18d
authored
Dec 05, 2017
by
Diana Huang
Committed by
GitHub
Dec 05, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #16786 from edx/diana/registration-form-bugs
Fix more registration form bugs.
parents
b212af24
366d0e14
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
lms/static/js/student_account/views/RegisterView.js
+3
-2
No files found.
lms/static/js/student_account/views/RegisterView.js
View file @
06e7e18d
...
...
@@ -161,6 +161,7 @@
postRender
:
function
()
{
var
inputs
=
this
.
$
(
'.form-field'
),
inputSelectors
=
'input, select, textarea'
,
inputTipSelectors
=
[
'tip error'
,
'tip tip-input'
],
inputTipSelectorsHidden
=
[
'tip error hidden'
,
'tip tip-input hidden'
],
onInputFocus
=
function
()
{
...
...
@@ -177,7 +178,7 @@
},
onInputFocusOut
=
function
()
{
// If input has no text apply focus out styles
if
(
$
(
this
).
val
().
length
===
0
)
{
if
(
$
(
this
).
find
(
inputSelectors
).
val
().
length
===
0
)
{
$
(
this
).
find
(
'label'
).
addClass
(
'focus-out'
)
.
removeClass
(
'focus-in'
);
}
...
...
@@ -191,7 +192,7 @@
},
handleInputBehavior
=
function
(
input
)
{
// Initially put label in input
if
(
input
.
val
().
length
===
0
)
{
if
(
input
.
find
(
inputSelectors
).
val
().
length
===
0
)
{
input
.
find
(
'label'
).
addClass
(
'focus-out'
)
.
removeClass
(
'focus-in'
);
}
...
...
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