|
|
@ -391,10 +391,7 @@
|
|
|
|
this.window.addEventListener('resize', this.onResize);
|
|
|
|
this.window.addEventListener('resize', this.onResize);
|
|
|
|
|
|
|
|
|
|
|
|
this.onFocus = () => {
|
|
|
|
this.onFocus = () => {
|
|
|
|
if (
|
|
|
|
if (!this.isHidden()) {
|
|
|
|
this.$el.css('display') !== 'none' &&
|
|
|
|
|
|
|
|
this.$el.css('display') !== ''
|
|
|
|
|
|
|
|
) {
|
|
|
|
|
|
|
|
this.markRead();
|
|
|
|
this.markRead();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -2654,7 +2651,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
isHidden() {
|
|
|
|
isHidden() {
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
this.$el.css('display') === 'none' ||
|
|
|
|
(this.$el.css('display') !== 'none' &&
|
|
|
|
|
|
|
|
this.$el.css('display') !== '') ||
|
|
|
|
this.$('.panel').css('display') === 'none'
|
|
|
|
this.$('.panel').css('display') === 'none'
|
|
|
|
);
|
|
|
|
);
|
|
|
|
},
|
|
|
|
},
|
|
|
|