refactor notification on mobile version

This commit is contained in:
Mike Ng
2018-06-07 16:49:31 +04:00
parent 484ccaed46
commit 30004d996b
4 changed files with 42 additions and 25 deletions

View File

@@ -131,7 +131,7 @@ var commonModule = (function ($, p4) {
fix_notification_height();
if ($('.notification.unread', box).length > 0) {
var trigger = $('#notification_trigger');
var trigger = $('.notification_trigger');
$('.counter', trigger)
.empty()
.append($('.notification.unread', box).length);
@@ -139,7 +139,7 @@ var commonModule = (function ($, p4) {
}
else
$('#notification_trigger .counter').css('visibility', 'hidden').empty();
$('.notification_trigger .counter').css('visibility', 'hidden').empty();
if (data.changed.length > 0) {
var current_open = $('.SSTT.ui-state-active');