mirror of
https://github.com/discourse/discourse.git
synced 2024-12-14 15:38:31 +08:00
FIX: Use unescaped title as combo-box id (#7979)
This commit is contained in:
parent
b1d2e4daf3
commit
0be47023d4
|
@ -720,7 +720,12 @@ const User = RestModel.extend({
|
||||||
|
|
||||||
return _.uniq(titles)
|
return _.uniq(titles)
|
||||||
.sort()
|
.sort()
|
||||||
.map(Ember.Handlebars.Utils.escapeExpression);
|
.map(title => {
|
||||||
|
return {
|
||||||
|
name: Ember.Handlebars.Utils.escapeExpression(title),
|
||||||
|
id: title
|
||||||
|
};
|
||||||
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
@computed("user_option.text_size_seq", "user_option.text_size")
|
@computed("user_option.text_size_seq", "user_option.text_size")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user