Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-ora2
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-ora2
Commits
d02880dd
Commit
d02880dd
authored
Jan 11, 2017
by
Albert St. Aubin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add SR Live text to save status on responses
TNL-6242
parent
4dfa423b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
4 deletions
+13
-4
openassessment/xblock/static/js/openassessment-lms.min.js
+0
-0
openassessment/xblock/static/js/src/lms/oa_base.js
+8
-1
openassessment/xblock/static/js/src/lms/oa_response.js
+3
-1
openassessment/xblock/static/js/src/lms/oa_training.js
+2
-2
No files found.
openassessment/xblock/static/js/openassessment-lms.min.js
View file @
d02880dd
This source diff could not be displayed because it is too large. You can
view the blob
instead.
openassessment/xblock/static/js/src/lms/oa_base.js
View file @
d02880dd
...
...
@@ -69,6 +69,13 @@ OpenAssessment.BaseView.prototype = {
},
/**
* Clear the text in the Aria live region.
*/
srClear
:
function
()
{
$
(
'.sr.reader-feedback'
).
html
(
''
);
},
/**
* Add the text messages to the Aria live region.
*
* @param {string[]} texts
...
...
@@ -77,7 +84,7 @@ OpenAssessment.BaseView.prototype = {
var
readerFeedbackID
=
'.sr.reader-feedback'
,
$readerFeedbackSelector
=
$
(
readerFeedbackID
),
htmlFeedback
=
''
;
this
.
srClear
();
$
.
each
(
texts
,
function
(
ids
,
value
)
{
htmlFeedback
=
htmlFeedback
+
'<p>'
+
value
+
'</p>
\
n'
;
});
...
...
openassessment/xblock/static/js/src/lms/oa_response.js
View file @
d02880dd
...
...
@@ -351,7 +351,9 @@ OpenAssessment.ResponseView.prototype = {
});
if
(
currentResponseEqualsSaved
)
{
view
.
saveEnabled
(
false
);
view
.
saveStatus
(
gettext
(
"This response has been saved but not submitted."
));
var
msg
=
gettext
(
"This response has been saved but not submitted."
);
view
.
saveStatus
(
msg
);
view
.
baseView
.
srReadTexts
([
msg
]);
}
}).
fail
(
function
(
errMsg
)
{
view
.
saveStatus
(
gettext
(
'Error'
));
...
...
openassessment/xblock/static/js/src/lms/oa_training.js
View file @
d02880dd
...
...
@@ -108,11 +108,11 @@ OpenAssessment.StudentTrainingView.prototype = {
}
else
{
instructions
.
addClass
(
"is--hidden"
);
incorrect
.
removeClass
(
"is--hidden"
);
$questionAnswers
.
each
(
function
(
index
,
answer
)
{
$questionAnswers
.
each
(
function
(
index
,
answer
)
{
var
$notification
=
$
(
".step__message.message"
,
view
.
rubric
.
element
).
not
(
".is--hidden"
);
$
(
answer
).
attr
(
'aria-describedby'
,
$
(
$notification
[
index
]).
attr
(
'id'
));
});
baseView
.
srReadTexts
([
gettext
(
'Feedback available for selection.'
)])
baseView
.
srReadTexts
([
gettext
(
'Feedback available for selection.'
)])
;
}
baseView
.
scrollToTop
(
".step--student-training"
);
}
...
...
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