Fixed xss lint issues

PROD-1609
PROD-1610
PROD-1614
PROD-1615
PROD-1616
This commit is contained in:
adeelehsan
2020-05-19 14:44:18 +05:00
parent 4bee41773c
commit 98590dbddf
5 changed files with 29 additions and 20 deletions

View File

@@ -5,7 +5,8 @@ define(['jquery', 'gettext', 'common/js/components/utils/view_utils', 'js/views/
function($, gettext, ViewUtils, CreateUtilsFactory) {
'use strict';
return function(selectors, classes) {
var keyLengthViolationMessage = gettext('The combined length of the organization, course number, and course run fields cannot be more than <%=limit%> characters.');
var keyLengthViolationMessage = gettext('The combined length of the organization, course number, ' +
'and course run fields cannot be more than <%- limit %> characters.');
var keyFieldSelectors = [selectors.org, selectors.number, selectors.run];
var nonEmptyCheckFieldSelectors = [selectors.name, selectors.org, selectors.number, selectors.run];

View File

@@ -5,7 +5,8 @@ define(['jquery', 'gettext', 'common/js/components/utils/view_utils', 'js/views/
function($, gettext, ViewUtils, CreateUtilsFactory) {
'use strict';
return function(selectors, classes) {
var keyLengthViolationMessage = gettext('The combined length of the organization and library code fields cannot be more than <%=limit%> characters.');
var keyLengthViolationMessage = gettext('The combined length of the organization and library code fields' +
' cannot be more than <%- limit %> characters.');
var keyFieldSelectors = [selectors.org, selectors.number];
var nonEmptyCheckFieldSelectors = [selectors.name, selectors.org, selectors.number];