diff --git a/lms/static/js/ccx/schedule.js b/lms/static/js/ccx/schedule.js
index a7e4426727..2dea84f42d 100644
--- a/lms/static/js/ccx/schedule.js
+++ b/lms/static/js/ccx/schedule.js
@@ -59,8 +59,9 @@ var edx = edx || {};
if (chapter_location !== 'none') {
var chapter = self.find_unit(self.hidden, chapter_location);
self.sequential_select.html('')
+ // xss-lint: disable=javascript-jquery-append, javascript-concat-html
.append('')
- .append(self.schedule_options(chapter.children));
+ .append(self.schedule_options(chapter.children)); // xss-lint: disable=javascript-jquery-append
self.sequential_select.prop('disabled', false);
$('#add-unit-button').prop('disabled', false);
// When a chapter is selected, start date fields are enabled and due date
@@ -81,8 +82,9 @@ var edx = edx || {};
var chapter = self.chapter_select.val(),
sequential = self.find_unit(self.hidden, chapter, sequential_location);
self.vertical_select.html('')
+ // xss-lint: disable=javascript-jquery-append, javascript-concat-html
.append('')
- .append(self.schedule_options(sequential.children));
+ .append(self.schedule_options(sequential.children)); // xss-lint: disable=javascript-jquery-append
self.vertical_select.prop('disabled', false);
self.set_datetime('start', sequential.start);
self.set_datetime('due', sequential.due);
@@ -175,14 +177,15 @@ var edx = edx || {};
});
// schedule_template defined globally in ccx\schedule.html
/* globals schedule_template */
- this.$el.html(schedule_template({chapters: this.showing}));
+ this.$el.html(schedule_template({chapters: this.showing})); // xss-lint: disable=javascript-jquery-html
$('table.ccx-schedule .sequential,.vertical').hide();
$('table.ccx-schedule .unit .toggle-collapse').on('click', this.toggle_collapse);
// Hidden hover fields for empty date fields
$('table.ccx-schedule .date button').each(function() {
if ($(this).text().trim() === gettext('Click to change')) {
+ // xss-lint: disable=javascript-jquery-html, javascript-concat-html
$(this).html('Set date ' +
- gettext('Click to change') + '');
+ gettext('Click to change') + ''); // xss-lint: disable=javascript-concat-html
}
});
@@ -218,8 +221,9 @@ var edx = edx || {};
if (this.hidden.length) {
// Populate chapters select, depopulate others
this.chapter_select.html('')
+ // xss-lint: disable=javascript-jquery-append, javascript-concat-html
.append('')
- .append(self.schedule_options(this.hidden));
+ .append(self.schedule_options(this.hidden)); // xss-lint: disable=javascript-jquery-append
this.sequential_select.html('').prop('disabled', true);
this.vertical_select.html('').prop('disabled', true);
$('form#add-unit').show();
diff --git a/lms/static/js/verify_student/views/make_payment_step_view.js b/lms/static/js/verify_student/views/make_payment_step_view.js
index 97083a12ac..bc6d06a1f8 100644
--- a/lms/static/js/verify_student/views/make_payment_step_view.js
+++ b/lms/static/js/verify_student/views/make_payment_step_view.js
@@ -114,7 +114,7 @@ var edx = edx || {};
}
// render the name of the product being paid for
- $('div.payment-buttons span.product-name').append(
+ $('div.payment-buttons span.product-name').append( // xss-lint: disable=javascript-jquery-append
self._getProductText(templateContext.courseModeSlug, templateContext.upgrade)
);
@@ -128,6 +128,7 @@ var edx = edx || {};
} else {
// create a button for each payment processor
_.each(processors.reverse(), function(processorName) {
+ // xss-lint: disable=javascript-jquery-append
$('div.payment-buttons').append(self._getPaymentButtonHtml(processorName));
});
}
@@ -197,7 +198,7 @@ var edx = edx || {};
type: 'hidden',
name: key,
value: value
- }).appendTo($form);
+ }).appendTo($form); // xss-lint: disable=javascript-jquery-insert-into-target
});
// Marketing needs a way to tell the difference between users