mirror of
https://github.com/discourse/discourse.git
synced 2025-05-08 00:43:12 +08:00
Unescape topic title before setting it as the document title.
This commit is contained in:
parent
97da6e7bd7
commit
d62017c598
@ -49,7 +49,7 @@ Discourse.TopicView = Discourse.View.extend(Discourse.Scrolling, {
|
|||||||
|
|
||||||
_updateTitle: function() {
|
_updateTitle: function() {
|
||||||
var title = this.get('topic.title');
|
var title = this.get('topic.title');
|
||||||
if (title) return Discourse.set('title', title);
|
if (title) return Discourse.set('title', _.unescape(title));
|
||||||
}.observes('topic.loaded', 'topic.title'),
|
}.observes('topic.loaded', 'topic.title'),
|
||||||
|
|
||||||
_composeChanged: function() {
|
_composeChanged: function() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user