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
749909b8
Commit
749909b8
authored
Jan 05, 2017
by
Brian Jacobel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused a11y functionality for prev/next buttons
parent
36e00867
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
15 deletions
+4
-15
common/lib/xmodule/xmodule/js/src/sequence/display.js
+4
-15
No files found.
common/lib/xmodule/xmodule/js/src/sequence/display.js
View file @
749909b8
...
...
@@ -100,16 +100,14 @@
* 'problem_id' is problem id.
* 'new_content_state' is the updated content of the problem.
* 'new_state' is the updated state of the problem.
* initialize for the current sequence if there isn't any updated problem
* for this position.
*/
// initialize for the current sequence if there isn't any updated problem for this position.
if
(
!
this
.
anyUpdatedProblems
(
this
.
position
))
{
this
.
updatedProblems
[
this
.
position
]
=
{};
}
// Now, put problem content and score against problem id for current active sequence.
this
.
updatedProblems
[
this
.
position
][
problemId
]
=
[
newContentState
,
newState
];
};
...
...
@@ -133,19 +131,10 @@
this
.
$
(
buttonClass
).
addClass
(
'disabled'
).
attr
(
'disabled'
,
true
);
};
Sequence
.
prototype
.
setButtonLabel
=
function
(
buttonClass
,
buttonLabel
)
{
this
.
$
(
buttonClass
+
' .sr'
).
html
(
buttonLabel
);
};
Sequence
.
prototype
.
updateButtonState
=
function
(
buttonClass
,
buttonAction
,
actionLabelPrefix
,
isAtBoundary
,
boundaryUrl
)
{
var
buttonLabel
;
Sequence
.
prototype
.
updateButtonState
=
function
(
buttonClass
,
buttonAction
,
isAtBoundary
,
boundaryUrl
)
{
if
(
isAtBoundary
&&
boundaryUrl
===
'None'
)
{
this
.
disableButton
(
buttonClass
);
}
else
{
buttonLabel
=
actionLabelPrefix
+
(
isAtBoundary
?
' Subsection'
:
' Unit'
);
this
.
setButtonLabel
(
buttonClass
,
buttonLabel
);
this
.
enableButton
(
buttonClass
,
buttonAction
);
}
};
...
...
@@ -158,13 +147,13 @@
// previous button
isFirstTab
=
this
.
position
===
1
;
previousButtonClass
=
'.sequence-nav-button.button-previous'
;
this
.
updateButtonState
(
previousButtonClass
,
this
.
selectPrevious
,
'Previous'
,
isFirstTab
,
this
.
prevUrl
);
this
.
updateButtonState
(
previousButtonClass
,
this
.
selectPrevious
,
isFirstTab
,
this
.
prevUrl
);
// next button
// use inequality in case contents.length is 0 and position is 1.
isLastTab
=
this
.
position
>=
this
.
contents
.
length
;
nextButtonClass
=
'.sequence-nav-button.button-next'
;
this
.
updateButtonState
(
nextButtonClass
,
this
.
selectNext
,
'Next'
,
isLastTab
,
this
.
nextUrl
);
this
.
updateButtonState
(
nextButtonClass
,
this
.
selectNext
,
isLastTab
,
this
.
nextUrl
);
};
Sequence
.
prototype
.
render
=
function
(
newPosition
)
{
...
...
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