mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 19:53:53 -06:00
FIX: emoji-picker do not reload all everything when changing diversity
This commit is contained in:
parent
22c5fb20b4
commit
8556d3c27f
@ -65,7 +65,9 @@ export default Ember.Component.extend({
|
||||
selectedDiversityChanged() {
|
||||
keyValueStore.setObject({key: EMOJI_SELECTED_DIVERSITY, value: this.get("selectedDiversity")});
|
||||
|
||||
$.each($list.find(".emoji[data-loaded='1'].diversity"), (_, button) => this._setButtonBackground(button, true) );
|
||||
$.each($list.find(".emoji[data-loaded='1'].diversity"), (_, button) => {
|
||||
$(button).css("background-image", "").removeAttr("data-loaded");
|
||||
});
|
||||
|
||||
if(this.get("filter") !== "") {
|
||||
$.each($results.find(".emoji.diversity"), (_, button) => this._setButtonBackground(button, true) );
|
||||
|
Loading…
Reference in New Issue
Block a user