Этот коммит содержится в:
Asaad Mahmood
2016-02-03 23:54:48 +05:00
родитель 9bba6c7988
Коммит f8d3f9d4ec
5 изменённых файлов: 90 добавлений и 65 удалений

Просмотреть файл

@@ -84,6 +84,16 @@ export default class ChannelLoader extends React.Component {
}
});
$('body').on('mouseenter mouseleave', '.search-item__container .post', function mouseOver(ev) {
if (ev.type === 'mouseenter') {
$(this).closest('.search-item__container').find('.date-separator').addClass('hovered--after');
$(this).closest('.search-item__container').next('div').find('.date-separator').addClass('hovered--before');
} else {
$(this).closest('.search-item__container').find('.date-separator').removeClass('hovered--after');
$(this).closest('.search-item__container').next('div').find('.date-separator').removeClass('hovered--before');
}
});
$('body').on('mouseenter mouseleave', '.post.post--comment.same--root', function mouseOver(ev) {
if (ev.type === 'mouseenter') {
$(this).parent('div').prev('.date-separator, .new-separator').addClass('hovered--comment');