diff --git a/client/src/views/preferences/edit.js b/client/src/views/preferences/edit.js index 4802e17814..edbf54c3b3 100644 --- a/client/src/views/preferences/edit.js +++ b/client/src/views/preferences/edit.js @@ -26,7 +26,7 @@ * these Appropriate Legal Notices must retain the display of the "EspoCRM" word. ************************************************************************/ -define('views/preferences/edit', 'views/edit', function (Dep) { +define('views/preferences/edit', ['views/edit'], function (Dep) { return Dep.extend({ @@ -34,16 +34,15 @@ define('views/preferences/edit', 'views/edit', function (Dep) { setup: function () { Dep.prototype.setup.call(this); + this.userName = this.model.get('name'); }, getHeader: function () { - var html = ''; - html += this.translate('Preferences'); - html += ' '; - html += this.getHelper().escapeString(this.userName); - return html; + return this.buildHeaderHtml([ + $('').text(this.translate('Preferences')), + $('').text(this.userName), + ]); }, - }); });