From c6e36c4fa2ec057812c4eb44b03e390f8d2129b8 Mon Sep 17 00:00:00 2001 From: azanbinzahid Date: Fri, 27 Nov 2020 17:36:55 +0500 Subject: [PATCH] PROD-2229 --- .../student_account/views/account_section_view.js | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/lms/static/js/student_account/views/account_section_view.js b/lms/static/js/student_account/views/account_section_view.js index 6c1b00a16c..5480e1511f 100644 --- a/lms/static/js/student_account/views/account_section_view.js +++ b/lms/static/js/student_account/views/account_section_view.js @@ -16,12 +16,15 @@ }, render: function() { - this.$el.html(_.template(sectionTemplate)({ - HtmlUtils: HtmlUtils, - sections: this.options.sections, - tabName: this.options.tabName, - tabLabel: this.options.tabLabel - })); + HtmlUtils.setHtml( + this.$el, + HtmlUtils.template(sectionTemplate)({ + HtmlUtils: HtmlUtils, + sections: this.options.sections, + tabName: this.options.tabName, + tabLabel: this.options.tabLabel + }) + ); this.renderFields(); },