From 7cdb54a73d9910e8c425000f08e28917fdc93c2c Mon Sep 17 00:00:00 2001 From: andystrobel Date: Tue, 24 Mar 2015 11:18:40 +0100 Subject: [PATCH] Removing notification count from page title after seen #603 --- css/style.css | 8 ++------ css/style.less | 4 ++-- .../modules_core/notification/widgets/views/list.php | 5 +++++ 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/css/style.css b/css/style.css index 3bd9b96307..14a688ef9e 100644 --- a/css/style.css +++ b/css/style.css @@ -863,9 +863,11 @@ textarea.placeholder { } #space-menu-dropdown { width: 300px !important; + max-height: 250px !important; } #search-menu-dropdown { width: 300px !important; + max-height: 250px !important; } .notifications { position: inherit !important; @@ -886,9 +888,3 @@ textarea.placeholder { font-size: 20px !important; } } -@media screen and (max-width: 768px) { - #space-menu-dropdown .media-list, - #search-menu-dropdown .media-list { - max-height: 250px; - } -} diff --git a/css/style.less b/css/style.less index a681569d56..9ccbac3e06 100644 --- a/css/style.less +++ b/css/style.less @@ -1131,12 +1131,12 @@ input.placeholder, textarea.placeholder { #space-menu-dropdown { width: 300px !important; - max-height: 250px; !important; + max-height: 250px !important; } #search-menu-dropdown { width: 300px !important; - max-height: 250px; !important; + max-height: 250px !important; } .notifications { diff --git a/protected/modules_core/notification/widgets/views/list.php b/protected/modules_core/notification/widgets/views/list.php index a078f966a6..174739d5b4 100644 --- a/protected/modules_core/notification/widgets/views/list.php +++ b/protected/modules_core/notification/widgets/views/list.php @@ -46,6 +46,11 @@ function markNotificationsAsSeen() { // hide notification badge at the top menu $('#badge-notifications').css('display', 'none'); $('#mark-seen-link').css('display', 'none'); + + // remove notification count from page title + var pageTitle = $('title').text().replace(/\(.+?\)/g, ''); + $('title').text(pageTitle); + }}); }