Commit dfc1cf15 by Kevin Kim

Fix the About Me section on the learner profile page.

parent cb4c7125
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
HtmlUtils.HTML('<span class="fa fa-plus placeholder" aria-hidden="true"></span><span class="sr">'), HtmlUtils.HTML('<span class="fa fa-plus placeholder" aria-hidden="true"></span><span class="sr">'),
gettext("Placeholder"), gettext("Placeholder"),
HtmlUtils.HTML('</span>') HtmlUtils.HTML('</span>')
) ),
}, },
messages: { messages: {
...@@ -98,8 +98,8 @@ ...@@ -98,8 +98,8 @@
return (this.modelValue() === true); return (this.modelValue() === true);
}, },
title: function (text) { title: function (title) {
return this.$('.u-field-title').text(text); return HtmlUtils.setHtml(this.$('.u-field-title'), title);
}, },
getMessage: function(message_status) { getMessage: function(message_status) {
...@@ -528,7 +528,8 @@ ...@@ -528,7 +528,8 @@
placeholderValue: this.options.placeholderValue placeholderValue: this.options.placeholderValue
})); }));
this.delegateEvents(); 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') { if (this.editable === 'toggle') {
this.showCanEditMessage(this.mode === 'display'); 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