Commit df827a42 by Albert St. Aubin

pr update

parent d02880dd
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -47,6 +47,7 @@ OpenAssessment.BaseView.prototype = { ...@@ -47,6 +47,7 @@ OpenAssessment.BaseView.prototype = {
SLIDABLE_CONTENT_CLASS: "ui-slidable__content", SLIDABLE_CONTENT_CLASS: "ui-slidable__content",
SLIDABLE_CONTROLS_CLASS: "ui-slidable__control", SLIDABLE_CONTROLS_CLASS: "ui-slidable__control",
SLIDABLE_CONTAINER_CLASS: "ui-slidable__container", SLIDABLE_CONTAINER_CLASS: "ui-slidable__container",
READER_FEEDBACK_CLASS: '.sr.reader-feedback',
/** /**
* Checks to see if the scrollTo function is available, then scrolls to the * Checks to see if the scrollTo function is available, then scrolls to the
...@@ -72,7 +73,7 @@ OpenAssessment.BaseView.prototype = { ...@@ -72,7 +73,7 @@ OpenAssessment.BaseView.prototype = {
* Clear the text in the Aria live region. * Clear the text in the Aria live region.
*/ */
srClear: function() { srClear: function() {
$('.sr.reader-feedback').html(''); $(this.READER_FEEDBACK_CLASS).html('');
}, },
/** /**
...@@ -81,8 +82,7 @@ OpenAssessment.BaseView.prototype = { ...@@ -81,8 +82,7 @@ OpenAssessment.BaseView.prototype = {
* @param {string[]} texts * @param {string[]} texts
*/ */
srReadTexts: function(texts) { srReadTexts: function(texts) {
var readerFeedbackID = '.sr.reader-feedback', var $readerFeedbackSelector = $(this.READER_FEEDBACK_CLASS),
$readerFeedbackSelector = $(readerFeedbackID),
htmlFeedback = ''; htmlFeedback = '';
this.srClear(); this.srClear();
$.each(texts, function(ids, value) { $.each(texts, function(ids, value) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment