diff --git a/cms/static/js/views/container.js b/cms/static/js/views/container.js index 8deefb758b..5d43112bb7 100644 --- a/cms/static/js/views/container.js +++ b/cms/static/js/views/container.js @@ -1,9 +1,9 @@ define([ 'jquery', 'underscore', 'js/views/xblock', 'js/utils/module', - 'gettext', 'common/js/components/views/feedback_notification', - 'jquery.ui' + 'gettext', 'edx-ui-toolkit/js/utils/string-utils', + 'common/js/components/views/feedback_notification', 'jquery.ui' ], // The container view uses sortable, which is provided by jquery.ui. - function($, _, XBlockView, ModuleUtils, gettext, NotificationView) { + function($, _, XBlockView, ModuleUtils, gettext, StringUtils, NotificationView) { 'use strict'; var studioXBlockWrapperClass = '.studio-xblock-wrapper'; @@ -142,7 +142,15 @@ define([ }, makeRequestSpecificSelector: function(selector) { - return 'div.xblock[data-request-token="' + this.requestToken + '"] > ' + selector; + return StringUtils.interpolate( + gettext('{startTag}{requestToken}{endTag}{selector}'), + { + startTag: 'div.xblock[data-request-token="', + requestToken: this.requestToken, + endTag: '"] > ', + selector: selector + } + ); } });