PROD-2227

This commit is contained in:
azanbinzahid
2020-11-27 17:49:50 +05:00
parent c6e36c4fa2
commit f4261cee46

View File

@@ -1,14 +1,23 @@
(function(define) {
'use strict';
define(['jquery', 'underscore', 'backbone', 'gettext'], function($, _, Backbone, gettext) {
define([
'jquery',
'underscore',
'backbone',
'gettext',
'edx-ui-toolkit/js/utils/html-utils'
], function($, _, Backbone, gettext, HtmlUtils) {
var CourseCohortSettingsNotificationView = Backbone.View.extend({
initialize: function(options) {
this.template = _.template($('#cohort-state-tpl').text());
this.template = HtmlUtils.template($('#cohort-state-tpl').text());
this.cohortEnabled = options.cohortEnabled;
},
render: function() {
this.$el.html(this.template({}));
HtmlUtils.setHtml(
this.$el,
this.template({})
);
this.showCohortStateMessage();
return this;
},