Commit a8afe918 by Kevin Kim Committed by GitHub

Merge pull request #12969 from edx/kkim/learner_profile_fix

Fix the About Me section on the learner profile page.
parents cb4c7125 dfc1cf15
......@@ -60,7 +60,7 @@
HtmlUtils.HTML('<span class="fa fa-plus placeholder" aria-hidden="true"></span><span class="sr">'),
gettext("Placeholder"),
HtmlUtils.HTML('</span>')
)
),
},
messages: {
......@@ -98,8 +98,8 @@
return (this.modelValue() === true);
},
title: function (text) {
return this.$('.u-field-title').text(text);
title: function (title) {
return HtmlUtils.setHtml(this.$('.u-field-title'), title);
},
getMessage: function(message_status) {
......@@ -528,7 +528,8 @@
placeholderValue: this.options.placeholderValue
}));
this.delegateEvents();
this.title((this.modelValue() || this.mode === 'edit') ? this.options.title : this.indicators['plus'] + this.options.title);
this.title((this.modelValue() || this.mode === 'edit') ?
this.options.title : HtmlUtils.joinHtml(this.indicators.plus, this.options.title));
if (this.editable === 'toggle') {
this.showCanEditMessage(this.mode === 'display');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment