fixes es-lint errors
This commit is contained in:
parent
6de258d4cf
commit
9664fd7302
|
@ -327,7 +327,6 @@ export default Ember.Component.extend({
|
|||
_applyEmojiAutocomplete($editorInput) {
|
||||
if (!this.siteSettings.enable_emoji) { return; }
|
||||
|
||||
const register = this.register;
|
||||
const self = this;
|
||||
|
||||
$editorInput.autocomplete({
|
||||
|
|
|
@ -221,7 +221,7 @@ export default Ember.Component.extend({
|
|||
_bindHover(hoverables) {
|
||||
const replaceInfoContent = (html) => {
|
||||
this.get("$picker").find(".footer .info").html(html || "");
|
||||
}
|
||||
};
|
||||
|
||||
(hoverables || this.$(".section-group a")).hover(event => {
|
||||
const $a = $(event.currentTarget);
|
||||
|
@ -289,7 +289,7 @@ export default Ember.Component.extend({
|
|||
});
|
||||
|
||||
let selectedSection;
|
||||
const currentScrollTop = this.get("$list").scrollTop()
|
||||
const currentScrollTop = this.get("$list").scrollTop();
|
||||
if (!_.isEmpty(this.get("recentEmojis")) && currentScrollTop === 0) {
|
||||
selectedSection = _.first(sections);
|
||||
} else if (!_.isEmpty(this.get("customEmojis")) &&
|
||||
|
@ -319,7 +319,7 @@ export default Ember.Component.extend({
|
|||
if(preloadedSection && !preloadedSection.$section.hasClass("loaded")) {
|
||||
preloadedSection.$section.addClass("loaded");
|
||||
const $visibleEmojis = preloadedSection.$section.find(".emoji[src='']");
|
||||
Ember.run.later(() => { this._loadVisibleEmojis($visibleEmojis) }, 1500);
|
||||
Ember.run.later(() => { this._loadVisibleEmojis($visibleEmojis); }, 1500);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -361,7 +361,7 @@ export default Ember.Component.extend({
|
|||
marginTop: -150,
|
||||
left: "50%",
|
||||
top: "50%"
|
||||
})
|
||||
});
|
||||
} else {
|
||||
this.$(".emoji-picker-modal").removeClass("fadeIn");
|
||||
|
||||
|
@ -387,7 +387,7 @@ export default Ember.Component.extend({
|
|||
_loadVisibleEmojis($visibleEmojis) {
|
||||
$.each($visibleEmojis, (_, icon) => {
|
||||
const $icon = $(icon);
|
||||
const code = this._codeWithDiversity($icon.parents("a").attr("title"), $icon.hasClass("diversity"))
|
||||
const code = this._codeWithDiversity($icon.parents("a").attr("title"), $icon.hasClass("diversity"));
|
||||
$icon.attr("src", emojiUrlFor(code));
|
||||
});
|
||||
},
|
||||
|
@ -442,7 +442,7 @@ export default Ember.Component.extend({
|
|||
|
||||
_updateIconSrc(icon) {
|
||||
const $icon = $(icon);
|
||||
const code = this._codeWithDiversity($icon.parents("a").attr("title"), true)
|
||||
const code = this._codeWithDiversity($icon.parents("a").attr("title"), true);
|
||||
$icon.attr("src", emojiUrlFor(code));
|
||||
},
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue