FIX: emoji-picker do not reload all everything when changing diversity

This commit is contained in:
Joffrey JAFFEUX 2017-07-25 12:23:32 +02:00
parent 22c5fb20b4
commit 8556d3c27f

View File

@ -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) );