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
06cbe161
Commit
06cbe161
authored
Nov 13, 2014
by
AlasdairSwan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
After accessibility review removed required field aria-describedby
parent
a5001bab
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
19 deletions
+7
-19
lms/static/js/student_account/views/FormView.js
+2
-9
lms/static/js/student_account/views/RegisterView.js
+1
-3
lms/templates/student_account/form_field.underscore
+3
-6
lms/templates/student_account/register.underscore
+1
-1
No files found.
lms/static/js/student_account/views/FormView.js
View file @
06cbe161
...
...
@@ -28,9 +28,6 @@ var edx = edx || {};
// String to append to required label fields
requiredStr
:
'*'
,
// Id of required footnote
requiredNote
:
'register-footnote'
,
initialize
:
function
(
data
)
{
this
.
model
=
data
.
model
;
this
.
preRender
(
data
);
...
...
@@ -74,8 +71,7 @@ var edx = edx || {};
var
html
=
[],
i
,
len
=
data
.
length
,
fieldTpl
=
this
.
fieldTpl
,
requiredNote
=
''
;
fieldTpl
=
this
.
fieldTpl
;
this
.
fields
=
data
;
...
...
@@ -84,12 +80,9 @@ var edx = edx || {};
data
[
i
].
errorMessages
=
this
.
escapeStrings
(
data
[
i
].
errorMessages
);
}
requiredNote
=
data
[
i
].
required
?
this
.
requiredNote
:
''
;
html
.
push
(
_
.
template
(
fieldTpl
,
$
.
extend
(
data
[
i
],
{
form
:
this
.
formType
,
requiredStr
:
this
.
requiredStr
,
requiredNote
:
requiredNote
requiredStr
:
this
.
requiredStr
})
)
);
}
...
...
lms/static/js/student_account/views/RegisterView.js
View file @
06cbe161
...
...
@@ -18,8 +18,6 @@ var edx = edx || {};
formType
:
'register'
,
requiredNote
:
'register-footnote'
,
preRender
:
function
(
data
)
{
this
.
providers
=
data
.
thirdPartyAuth
.
providers
||
[];
this
.
currentProvider
=
data
.
thirdPartyAuth
.
currentProvider
||
''
;
...
...
@@ -58,6 +56,6 @@ var edx = edx || {};
saveSuccess
:
function
()
{
this
.
trigger
(
'auth-complete'
);
}
,
}
});
})(
jQuery
,
_
,
gettext
);
lms/templates/student_account/form_field.underscore
View file @
06cbe161
...
...
@@ -10,8 +10,7 @@
<select id="<%= form %>-<%= name %>"
name="<%= name %>"
class="input-inline"
aria-describedby="<%= form %>-<%= name %>-desc <%= requiredNote %>"
oninvalid="setCustomValidity(' ')"
aria-describedby="<%= form %>-<%= name %>-desc"
<% if ( required ) { %> aria-required="true" required<% } %>>
<% _.each(options, function(el) { %>
<option value="<%= el.value%>"<% if ( el.default ) { %> data-isdefault="true"<% } %>><%= el.name %></option>
...
...
@@ -22,8 +21,7 @@
type="<%= type %>"
name="<%= name %>"
class="input-block"
aria-describedby="<%= form %>-<%= name %>-desc <%= requiredNote %>"
oninvalid="setCustomValidity(' ')"
aria-describedby="<%= form %>-<%= name %>-desc"
<% if ( restrictions.min_length ) { %> minlength="<%= restrictions.min_length %>"<% } %>
<% if ( restrictions.max_length ) { %> maxlength="<%= restrictions.max_length %>"<% } %>
<% if ( typeof errorMessages !== 'undefined' ) {
...
...
@@ -37,8 +35,7 @@
type="<%= type %>"
name="<%= name %>"
class="input-block <% if ( type === 'checkbox' ) { %>checkbox<% } %>"
aria-describedby="<%= form %>-<%= name %>-desc <%= requiredNote %>"
oninvalid="setCustomValidity(' ')"
aria-describedby="<%= form %>-<%= name %>-desc"
<% if ( restrictions.min_length ) { %> minlength="<%= restrictions.min_length %>"<% } %>
<% if ( restrictions.max_length ) { %> maxlength="<%= restrictions.max_length %>"<% } %>
<% if ( required ) { %> aria-required="true" required<% } %>
...
...
lms/templates/student_account/register.underscore
View file @
06cbe161
...
...
@@ -25,5 +25,5 @@
<%= context.fields %>
<button class="action action-primary action-update js-register register-button"><%- gettext("Register") %></button>
<p
id="register-footnote"
class="note">* <%- gettext("Required field") %></p>
<p class="note">* <%- gettext("Required field") %></p>
</form>
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