Added a class for unconfirmed notifications
authorChristopher Walz <chris@cwalz.de>
Thu, 27 Nov 2014 10:59:16 +0000 (11:59 +0100)
committerChristopher Walz <chris@cwalz.de>
Thu, 27 Nov 2014 10:59:16 +0000 (11:59 +0100)
com.woltlab.wcf/templates/notificationList.tpl
com.woltlab.wcf/templates/notificationListOustanding.tpl
wcfsetup/install/files/js/WCF.User.js

index 6445f4444266dc8e1afb4567e525104938ef66d6..da5d1977e15e9be6d8744a376d81b1a8e2c03f22 100644 (file)
@@ -63,7 +63,7 @@
                        <div class="container marginTop">
                                <ul class="containerList userNotificationItemList">
                {/if}
-                               <li class="jsNotificationItem notificationItem{if $notification[authors] > 1} groupedNotificationItem{/if}" data-notification-id="{@$notification[notificationID]}" data-link="{$notification[event]->getLink()}" data-is-grouped="{if $notification[authors] > 1}true{else}false{/if}" data-is-confirmed="{if $notification[event]->isConfirmed()}true{else}false{/if}">
+                               <li class="jsNotificationItem notificationItem{if $notification[authors] > 1} groupedNotificationItem{/if}{if !$notification[event]->isConfirmed()} notificationUnconfirmed{/if}" data-notification-id="{@$notification[notificationID]}" data-link="{$notification[event]->getLink()}" data-is-grouped="{if $notification[authors] > 1}true{else}false{/if}" data-is-confirmed="{if $notification[event]->isConfirmed()}true{else}false{/if}">
                                        <div class="box24">
                                                {if $notification[authors] < 2}
                                                        <div class="framed">
index 4dd91b735cc2a90427f99bfc0ee90cf7ce52d60c..ccb5cb282c7befd8837f8b95946dcde5e22467d2 100644 (file)
@@ -1,5 +1,5 @@
 {foreach from=$notifications[notifications] item=notification}
-       <li class="jsNotificationItem notificationItem{if $notification[event]->getAuthors()|count > 1} groupedNotificationItem{/if}" data-link="{$notification[event]->getLink()}" data-notification-id="{@$notification[notificationID]}" data-is-confirmed="{if $notification[event]->isConfirmed()}true{else}false{/if}">
+       <li class="jsNotificationItem notificationItem{if $notification[event]->getAuthors()|count > 1} groupedNotificationItem{/if}{if !$notification[event]->isConfirmed()} notificationUnconfirmed{/if}" data-link="{$notification[event]->getLink()}" data-notification-id="{@$notification[notificationID]}" data-is-confirmed="{if $notification[event]->isConfirmed()}true{else}false{/if}">
                <span class="box24">
                        <div class="framed">
                                {if $notification[event]->getAuthors()|count < 2}
index 7b6eda322a67b79de10f03116545de2c5f0184b1..f62c0ed02d3380a1feb1f6d6d9f4fbd1e2b38148 100644 (file)
@@ -1338,6 +1338,7 @@ WCF.Notification.List = Class.extend({
                $item.data('isConfirmed', true);
                $item.find('.notificationItemMarkAsConfirmed').remove();
                $item.find('.newContentBadge').remove();
+               $item.removeClass('notificationUnconfirmed');
        }
 });
 
@@ -1518,6 +1519,7 @@ WCF.Notification.UserPanel = WCF.UserPanel.extend({
                                                $item.data('isConfirmed', true);
                                                $item.find('.notificationItemMarkAsConfirmed').remove();
                                                $item.find('.newContentBadge').remove();
+                                               $item.removeClass('notificationUnconfirmed');
                                                
                                                return false;
                                        }