N°7327 - Allows to differentiate newsroom priorities

This commit is contained in:
Stephen Abello
2024-03-08 09:53:15 +01:00
parent 48f7ae8476
commit 892a7fa95f
18 changed files with 99 additions and 7 deletions

View File

@@ -19,9 +19,19 @@ $ibo-navigation-menu--notifications--item--content--padding-x: 14px !default;
$ibo-navigation-menu--notifications--item--content--img--max-height: 100px !default; $ibo-navigation-menu--notifications--item--content--img--max-height: 100px !default;
$ibo-navigation-menu--notifications--item--content--img--padding: 5px !default; $ibo-navigation-menu--notifications--item--content--img--padding: 5px !default;
$ibo-navigation-menu--notifications--item--new-message-indicator--width: 10px !default; $ibo-navigation-menu--notifications--item--new-message-indicator--width: 13px !default;
$ibo-navigation-menu--notifications--item--new-message-indicator--height: 10px !default; $ibo-navigation-menu--notifications--item--new-message-indicator--height: 13px !default;
$ibo-navigation-menu--notifications--item--new-message-indicator--background-color: $ibo-color-blue-500 !default; $ibo-navigation-menu--notifications--item--new-message-indicator--background-color: $ibo-color-white-100 !default;
$ibo-navigation-menu--notifications--item--new-message-indicator--border: solid 2px $ibo-color-grey-500 !default;
$ibo-navigation-menu--notifications--item--new-message-indicator--is-priority-1--background-color: $ibo-color-red-100 !default;
$ibo-navigation-menu--notifications--item--new-message-indicator--is-priority-1--border: solid 2px $ibo-color-red-500 !default;
$ibo-navigation-menu--notifications--item--new-message-indicator--is-priority-2--background-color: $ibo-color-orange-100 !default;
$ibo-navigation-menu--notifications--item--new-message-indicator--is-priority-2--border: solid 2px $ibo-color-orange-500 !default;
$ibo-navigation-menu--notifications--item--new-message-indicator--is-priority-3--background-color: $ibo-color-blue-100 !default;
$ibo-navigation-menu--notifications--item--new-message-indicator--is-priority-3--border: solid 2px $ibo-color-blue-500 !default;
$ibo-navigation-menu--notifications--item--new-message-indicator--is-priority-4--background-color: $ibo-navigation-menu--notifications--item--new-message-indicator--background-color !default;
$ibo-navigation-menu--notifications--item--new-message-indicator--is-priority-4--border: $ibo-navigation-menu--notifications--item--new-message-indicator--border !default;
$ibo-navigation-menu--notifications--item--new-message-indicator--border-radius: $ibo-border-radius-full !default; $ibo-navigation-menu--notifications--item--new-message-indicator--border-radius: $ibo-border-radius-full !default;
$ibo-navigation-menu--notifications--item--new-message-indicator--margin-top: $ibo-spacing-200 !default; $ibo-navigation-menu--notifications--item--new-message-indicator--margin-top: $ibo-spacing-200 !default;
@@ -87,8 +97,25 @@ $ibo-popover-menu--item--no-message--image--svg--padding : 15px !default;
width: $ibo-navigation-menu--notifications--item--new-message-indicator--width; width: $ibo-navigation-menu--notifications--item--new-message-indicator--width;
height: $ibo-navigation-menu--notifications--item--new-message-indicator--height; height: $ibo-navigation-menu--notifications--item--new-message-indicator--height;
background-color: $ibo-navigation-menu--notifications--item--new-message-indicator--background-color; background-color: $ibo-navigation-menu--notifications--item--new-message-indicator--background-color;
border: $ibo-navigation-menu--notifications--item--new-message-indicator--border;
border-radius: $ibo-navigation-menu--notifications--item--new-message-indicator--border-radius; border-radius: $ibo-navigation-menu--notifications--item--new-message-indicator--border-radius;
margin-top: $ibo-navigation-menu--notifications--item--new-message-indicator--margin-top; margin-top: $ibo-navigation-menu--notifications--item--new-message-indicator--margin-top;
&.ibo-is-priority-1{
background-color: $ibo-navigation-menu--notifications--item--new-message-indicator--is-priority-1--background-color;
border: $ibo-navigation-menu--notifications--item--new-message-indicator--is-priority-1--border;
}
&.ibo-is-priority-2{
background-color: $ibo-navigation-menu--notifications--item--new-message-indicator--is-priority-2--background-color;
border: $ibo-navigation-menu--notifications--item--new-message-indicator--is-priority-2--border;
}
&.ibo-is-priority-3{
background-color: $ibo-navigation-menu--notifications--item--new-message-indicator--is-priority-3--background-color;
border: $ibo-navigation-menu--notifications--item--new-message-indicator--is-priority-3--border;
}
&.ibo-is-priority-4{
background-color: $ibo-navigation-menu--notifications--item--new-message-indicator--is-priority-4--background-color;
border: $ibo-navigation-menu--notifications--item--new-message-indicator--is-priority-4--border;
}
} }
.ibo-navigation-menu--notifications-show-all-multiple ~ .ibo-popover-menu { .ibo-navigation-menu--notifications-show-all-multiple ~ .ibo-popover-menu {

View File

@@ -1626,6 +1626,10 @@ Dict::Add('CS CZ', 'Czech', 'Čeština', array(
'UI:Newsroom:ResetCache:Success:Message' => 'Your newsroom cache has been successfully reset~~', 'UI:Newsroom:ResetCache:Success:Message' => 'Your newsroom cache has been successfully reset~~',
'UI:Newsroom:DisplayMessagesFor_Provider' => 'Zobrazit zprávy od %1$s', 'UI:Newsroom:DisplayMessagesFor_Provider' => 'Zobrazit zprávy od %1$s',
'UI:Newsroom:DisplayAtMost_X_Messages' => 'Zobrazit %1$s zpráv v menu %2$s', 'UI:Newsroom:DisplayAtMost_X_Messages' => 'Zobrazit %1$s zpráv v menu %2$s',
'UI:Newsroom:Priority:1:Tooltip' => 'Critical~~',
'UI:Newsroom:Priority:2:Tooltip' => 'Urgent~~',
'UI:Newsroom:Priority:3:Tooltip' => 'Important~~',
'UI:Newsroom:Priority:4:Tooltip' => 'Normal~~',
)); ));

View File

@@ -1617,6 +1617,10 @@ Dict::Add('DA DA', 'Danish', 'Dansk', array(
'UI:Newsroom:ResetCache:Success:Message' => 'Your newsroom cache has been successfully reset~~', 'UI:Newsroom:ResetCache:Success:Message' => 'Your newsroom cache has been successfully reset~~',
'UI:Newsroom:DisplayMessagesFor_Provider' => 'Display messages from %1$s~~', 'UI:Newsroom:DisplayMessagesFor_Provider' => 'Display messages from %1$s~~',
'UI:Newsroom:DisplayAtMost_X_Messages' => 'Display up to %1$s messages in the %2$s menu.~~', 'UI:Newsroom:DisplayAtMost_X_Messages' => 'Display up to %1$s messages in the %2$s menu.~~',
'UI:Newsroom:Priority:1:Tooltip' => 'Critical~~',
'UI:Newsroom:Priority:2:Tooltip' => 'Urgent~~',
'UI:Newsroom:Priority:3:Tooltip' => 'Important~~',
'UI:Newsroom:Priority:4:Tooltip' => 'Normal~~',
)); ));

View File

@@ -1615,6 +1615,10 @@ Dict::Add('DE DE', 'German', 'Deutsch', array(
'UI:Newsroom:ResetCache:Success:Message' => 'Your newsroom cache has been successfully reset~~', 'UI:Newsroom:ResetCache:Success:Message' => 'Your newsroom cache has been successfully reset~~',
'UI:Newsroom:DisplayMessagesFor_Provider' => 'Nachrichten von %1$s anzeigen', 'UI:Newsroom:DisplayMessagesFor_Provider' => 'Nachrichten von %1$s anzeigen',
'UI:Newsroom:DisplayAtMost_X_Messages' => 'Zeigen Sie höchstens %1$s Beiträge im Menü (%2$s) an.', 'UI:Newsroom:DisplayAtMost_X_Messages' => 'Zeigen Sie höchstens %1$s Beiträge im Menü (%2$s) an.',
'UI:Newsroom:Priority:1:Tooltip' => 'Critical~~',
'UI:Newsroom:Priority:2:Tooltip' => 'Urgent~~',
'UI:Newsroom:Priority:3:Tooltip' => 'Important~~',
'UI:Newsroom:Priority:4:Tooltip' => 'Normal~~',
)); ));

View File

@@ -1713,6 +1713,10 @@ Dict::Add('EN US', 'English', 'English', array(
'UI:Newsroom:ResetCache:Success:Message' => 'Your newsroom cache has been successfully reset', 'UI:Newsroom:ResetCache:Success:Message' => 'Your newsroom cache has been successfully reset',
'UI:Newsroom:DisplayMessagesFor_Provider' => 'Display messages from %1$s', 'UI:Newsroom:DisplayMessagesFor_Provider' => 'Display messages from %1$s',
'UI:Newsroom:DisplayAtMost_X_Messages' => 'Display up to %1$s messages in the %2$s menu.', 'UI:Newsroom:DisplayAtMost_X_Messages' => 'Display up to %1$s messages in the %2$s menu.',
'UI:Newsroom:Priority:1:Tooltip' => 'Critical',
'UI:Newsroom:Priority:2:Tooltip' => 'Urgent',
'UI:Newsroom:Priority:3:Tooltip' => 'Important',
'UI:Newsroom:Priority:4:Tooltip' => 'Normal',
)); ));

View File

@@ -1634,6 +1634,10 @@ Dict::Add('ES CR', 'Spanish', 'Español, Castellano', array(
'UI:Newsroom:ResetCache:Success:Message' => 'Your newsroom cache has been successfully reset~~', 'UI:Newsroom:ResetCache:Success:Message' => 'Your newsroom cache has been successfully reset~~',
'UI:Newsroom:DisplayMessagesFor_Provider' => 'Desplegar mensajes de %1$s', 'UI:Newsroom:DisplayMessagesFor_Provider' => 'Desplegar mensajes de %1$s',
'UI:Newsroom:DisplayAtMost_X_Messages' => 'Desplegar hasta %1$s mensajes en el menú %2$s.', 'UI:Newsroom:DisplayAtMost_X_Messages' => 'Desplegar hasta %1$s mensajes en el menú %2$s.',
'UI:Newsroom:Priority:1:Tooltip' => 'Critical~~',
'UI:Newsroom:Priority:2:Tooltip' => 'Urgent~~',
'UI:Newsroom:Priority:3:Tooltip' => 'Important~~',
'UI:Newsroom:Priority:4:Tooltip' => 'Normal~~',
)); ));

View File

@@ -1623,6 +1623,10 @@ Dict::Add('FR FR', 'French', 'Français', array(
'UI:Newsroom:ResetCache:Success:Message' => 'Le cache de la newsroom a été réinitialisé avec succès', 'UI:Newsroom:ResetCache:Success:Message' => 'Le cache de la newsroom a été réinitialisé avec succès',
'UI:Newsroom:DisplayMessagesFor_Provider' => 'Afficher les messages de %1$s', 'UI:Newsroom:DisplayMessagesFor_Provider' => 'Afficher les messages de %1$s',
'UI:Newsroom:DisplayAtMost_X_Messages' => 'Afficher au plus %1$s messages dans le menu %2$s.', 'UI:Newsroom:DisplayAtMost_X_Messages' => 'Afficher au plus %1$s messages dans le menu %2$s.',
'UI:Newsroom:Priority:1:Tooltip' => 'Critique',
'UI:Newsroom:Priority:2:Tooltip' => 'Urgent',
'UI:Newsroom:Priority:3:Tooltip' => 'Important',
'UI:Newsroom:Priority:4:Tooltip' => 'Standard',
)); ));

View File

@@ -1618,6 +1618,10 @@ Dict::Add('HU HU', 'Hungarian', 'Magyar', array(
'UI:Newsroom:ResetCache:Success:Message' => 'Your newsroom cache has been successfully reset~~', 'UI:Newsroom:ResetCache:Success:Message' => 'Your newsroom cache has been successfully reset~~',
'UI:Newsroom:DisplayMessagesFor_Provider' => '%1$s üzeneteinek megjelenítése', 'UI:Newsroom:DisplayMessagesFor_Provider' => '%1$s üzeneteinek megjelenítése',
'UI:Newsroom:DisplayAtMost_X_Messages' => 'Mutasson %1$s üzenetet a %2$s menüben.', 'UI:Newsroom:DisplayAtMost_X_Messages' => 'Mutasson %1$s üzenetet a %2$s menüben.',
'UI:Newsroom:Priority:1:Tooltip' => 'Critical~~',
'UI:Newsroom:Priority:2:Tooltip' => 'Urgent~~',
'UI:Newsroom:Priority:3:Tooltip' => 'Important~~',
'UI:Newsroom:Priority:4:Tooltip' => 'Normal~~',
)); ));

View File

@@ -1634,6 +1634,10 @@ Dict::Add('IT IT', 'Italian', 'Italiano', array(
'UI:Newsroom:ResetCache:Success:Message' => 'Your newsroom cache has been successfully reset~~', 'UI:Newsroom:ResetCache:Success:Message' => 'Your newsroom cache has been successfully reset~~',
'UI:Newsroom:DisplayMessagesFor_Provider' => 'Mostra messaggi da %1$s', 'UI:Newsroom:DisplayMessagesFor_Provider' => 'Mostra messaggi da %1$s',
'UI:Newsroom:DisplayAtMost_X_Messages' => 'Mostra fino a %1$s messaggi nel menu %2$s.', 'UI:Newsroom:DisplayAtMost_X_Messages' => 'Mostra fino a %1$s messaggi nel menu %2$s.',
'UI:Newsroom:Priority:1:Tooltip' => 'Critical~~',
'UI:Newsroom:Priority:2:Tooltip' => 'Urgent~~',
'UI:Newsroom:Priority:3:Tooltip' => 'Important~~',
'UI:Newsroom:Priority:4:Tooltip' => 'Normal~~',
)); ));

View File

@@ -1616,6 +1616,10 @@ Dict::Add('JA JP', 'Japanese', '日本語', array(
'UI:Newsroom:ResetCache:Success:Message' => 'Your newsroom cache has been successfully reset~~', 'UI:Newsroom:ResetCache:Success:Message' => 'Your newsroom cache has been successfully reset~~',
'UI:Newsroom:DisplayMessagesFor_Provider' => 'Display messages from %1$s~~', 'UI:Newsroom:DisplayMessagesFor_Provider' => 'Display messages from %1$s~~',
'UI:Newsroom:DisplayAtMost_X_Messages' => 'Display up to %1$s messages in the %2$s menu.~~', 'UI:Newsroom:DisplayAtMost_X_Messages' => 'Display up to %1$s messages in the %2$s menu.~~',
'UI:Newsroom:Priority:1:Tooltip' => 'Critical~~',
'UI:Newsroom:Priority:2:Tooltip' => 'Urgent~~',
'UI:Newsroom:Priority:3:Tooltip' => 'Important~~',
'UI:Newsroom:Priority:4:Tooltip' => 'Normal~~',
)); ));

View File

@@ -1631,6 +1631,10 @@ Dict::Add('NL NL', 'Dutch', 'Nederlands', array(
'UI:Newsroom:ResetCache:Success:Message' => 'Your newsroom cache has been successfully reset~~', 'UI:Newsroom:ResetCache:Success:Message' => 'Your newsroom cache has been successfully reset~~',
'UI:Newsroom:DisplayMessagesFor_Provider' => 'Bekijk berichten van %1$s', 'UI:Newsroom:DisplayMessagesFor_Provider' => 'Bekijk berichten van %1$s',
'UI:Newsroom:DisplayAtMost_X_Messages' => 'Toon maximaal %1$s berichten in het %2$s menu.', 'UI:Newsroom:DisplayAtMost_X_Messages' => 'Toon maximaal %1$s berichten in het %2$s menu.',
'UI:Newsroom:Priority:1:Tooltip' => 'Critical~~',
'UI:Newsroom:Priority:2:Tooltip' => 'Urgent~~',
'UI:Newsroom:Priority:3:Tooltip' => 'Important~~',
'UI:Newsroom:Priority:4:Tooltip' => 'Normal~~',
)); ));

View File

@@ -1628,6 +1628,10 @@ Dict::Add('PL PL', 'Polish', 'Polski', array(
'UI:Newsroom:ResetCache:Success:Message' => 'Your newsroom cache has been successfully reset~~', 'UI:Newsroom:ResetCache:Success:Message' => 'Your newsroom cache has been successfully reset~~',
'UI:Newsroom:DisplayMessagesFor_Provider' => 'Wyświetl wiadomości od %1$s', 'UI:Newsroom:DisplayMessagesFor_Provider' => 'Wyświetl wiadomości od %1$s',
'UI:Newsroom:DisplayAtMost_X_Messages' => 'Wyświetlaj do %1$s wiadomiości w %2$s menu.', 'UI:Newsroom:DisplayAtMost_X_Messages' => 'Wyświetlaj do %1$s wiadomiości w %2$s menu.',
'UI:Newsroom:Priority:1:Tooltip' => 'Critical~~',
'UI:Newsroom:Priority:2:Tooltip' => 'Urgent~~',
'UI:Newsroom:Priority:3:Tooltip' => 'Important~~',
'UI:Newsroom:Priority:4:Tooltip' => 'Normal~~',
)); ));

View File

@@ -1628,6 +1628,10 @@ Dict::Add('PT BR', 'Brazilian', 'Brazilian', array(
'UI:Newsroom:ResetCache:Success:Message' => 'Your newsroom cache has been successfully reset~~', 'UI:Newsroom:ResetCache:Success:Message' => 'Your newsroom cache has been successfully reset~~',
'UI:Newsroom:DisplayMessagesFor_Provider' => 'Exibir mensagens do(a) %1$s', 'UI:Newsroom:DisplayMessagesFor_Provider' => 'Exibir mensagens do(a) %1$s',
'UI:Newsroom:DisplayAtMost_X_Messages' => 'Exibir até %1$s mensagem(ns) no menu %2$s', 'UI:Newsroom:DisplayAtMost_X_Messages' => 'Exibir até %1$s mensagem(ns) no menu %2$s',
'UI:Newsroom:Priority:1:Tooltip' => 'Critical~~',
'UI:Newsroom:Priority:2:Tooltip' => 'Urgent~~',
'UI:Newsroom:Priority:3:Tooltip' => 'Important~~',
'UI:Newsroom:Priority:4:Tooltip' => 'Normal~~',
)); ));

View File

@@ -1628,6 +1628,10 @@ Dict::Add('RU RU', 'Russian', 'Русский', array(
'UI:Newsroom:ResetCache:Success:Message' => 'Your newsroom cache has been successfully reset~~', 'UI:Newsroom:ResetCache:Success:Message' => 'Your newsroom cache has been successfully reset~~',
'UI:Newsroom:DisplayMessagesFor_Provider' => 'Показать сообщения от %1$s', 'UI:Newsroom:DisplayMessagesFor_Provider' => 'Показать сообщения от %1$s',
'UI:Newsroom:DisplayAtMost_X_Messages' => 'Отобразите не более %1$s сообщений в меню %2$s.', 'UI:Newsroom:DisplayAtMost_X_Messages' => 'Отобразите не более %1$s сообщений в меню %2$s.',
'UI:Newsroom:Priority:1:Tooltip' => 'Critical~~',
'UI:Newsroom:Priority:2:Tooltip' => 'Urgent~~',
'UI:Newsroom:Priority:3:Tooltip' => 'Important~~',
'UI:Newsroom:Priority:4:Tooltip' => 'Normal~~',
)); ));

View File

@@ -1620,6 +1620,10 @@ Dict::Add('SK SK', 'Slovak', 'Slovenčina', array(
'UI:Newsroom:ResetCache:Success:Message' => 'Your newsroom cache has been successfully reset~~', 'UI:Newsroom:ResetCache:Success:Message' => 'Your newsroom cache has been successfully reset~~',
'UI:Newsroom:DisplayMessagesFor_Provider' => 'Display messages from %1$s~~', 'UI:Newsroom:DisplayMessagesFor_Provider' => 'Display messages from %1$s~~',
'UI:Newsroom:DisplayAtMost_X_Messages' => 'Display up to %1$s messages in the %2$s menu.~~', 'UI:Newsroom:DisplayAtMost_X_Messages' => 'Display up to %1$s messages in the %2$s menu.~~',
'UI:Newsroom:Priority:1:Tooltip' => 'Critical~~',
'UI:Newsroom:Priority:2:Tooltip' => 'Urgent~~',
'UI:Newsroom:Priority:3:Tooltip' => 'Important~~',
'UI:Newsroom:Priority:4:Tooltip' => 'Normal~~',
)); ));

View File

@@ -1628,6 +1628,10 @@ Dict::Add('TR TR', 'Turkish', 'Türkçe', array(
'UI:Newsroom:ResetCache:Success:Message' => 'Your newsroom cache has been successfully reset~~', 'UI:Newsroom:ResetCache:Success:Message' => 'Your newsroom cache has been successfully reset~~',
'UI:Newsroom:DisplayMessagesFor_Provider' => 'Display messages from %1$s~~', 'UI:Newsroom:DisplayMessagesFor_Provider' => 'Display messages from %1$s~~',
'UI:Newsroom:DisplayAtMost_X_Messages' => 'Display up to %1$s messages in the %2$s menu.~~', 'UI:Newsroom:DisplayAtMost_X_Messages' => 'Display up to %1$s messages in the %2$s menu.~~',
'UI:Newsroom:Priority:1:Tooltip' => 'Critical~~',
'UI:Newsroom:Priority:2:Tooltip' => 'Urgent~~',
'UI:Newsroom:Priority:3:Tooltip' => 'Important~~',
'UI:Newsroom:Priority:4:Tooltip' => 'Normal~~',
)); ));

View File

@@ -1712,6 +1712,10 @@ Dict::Add('ZH CN', 'Chinese', '简体中文', array(
'UI:Newsroom:ResetCache:Success:Message' => 'Your newsroom cache has been successfully reset~~', 'UI:Newsroom:ResetCache:Success:Message' => 'Your newsroom cache has been successfully reset~~',
'UI:Newsroom:DisplayMessagesFor_Provider' => '显示来自%1$s的消息', 'UI:Newsroom:DisplayMessagesFor_Provider' => '显示来自%1$s的消息',
'UI:Newsroom:DisplayAtMost_X_Messages' => '在%2$s菜单中最多显示%1$s条消息.', 'UI:Newsroom:DisplayAtMost_X_Messages' => '在%2$s菜单中最多显示%1$s条消息.',
'UI:Newsroom:Priority:1:Tooltip' => 'Critical~~',
'UI:Newsroom:Priority:2:Tooltip' => 'Urgent~~',
'UI:Newsroom:Priority:3:Tooltip' => 'Important~~',
'UI:Newsroom:Priority:4:Tooltip' => 'Normal~~',
)); ));

View File

@@ -203,8 +203,9 @@ $(function()
_buildShowAllMessagesSection: function () { _buildShowAllMessagesSection: function () {
return '<div class="ibo-popover-menu--section ibo-navigation-menu--notifications--show-all-messages" data-role="ibo-popover-menu--section">'; return '<div class="ibo-popover-menu--section ibo-navigation-menu--notifications--show-all-messages" data-role="ibo-popover-menu--section">';
}, },
_buildMessageItems: function (sId, sText, sImage, sStartDate, sProvider, sUrl, sTarget, oConverter) { _buildMessageItems: function (sId, sText, sImage, sStartDate, sProvider, sUrl, sTarget, sPriority, oConverter) {
var sNewMessageIndicator = '<div class="ibo-navigation-menu--notifications--item--new-message-indicator"></div>'; let sNewMessageIndicatorTooltip = Dict.S('UI:Newsroom:Priority:'+sPriority+':Tooltip');
var sNewMessageIndicator = '<div class="ibo-navigation-menu--notifications--item--new-message-indicator ibo-is-priority-'+sPriority+'" data-tooltip-content="'+sNewMessageIndicatorTooltip+'"></div>';
sImage = '<img class="ibo-navigation-menu--notifications--item--image" src="' + sImage + '"><i class="ibo-navigation-menu--notifications--item--image ' + this.options.placeholder_image_icon + '"></i>'; sImage = '<img class="ibo-navigation-menu--notifications--item--image" src="' + sImage + '"><i class="ibo-navigation-menu--notifications--item--image ' + this.options.placeholder_image_icon + '"></i>';
var div = document.createElement("div"); var div = document.createElement("div");
@@ -263,7 +264,7 @@ $(function()
var oMessage = aAllMessages[k]; var oMessage = aAllMessages[k];
aUnreadMessagesByProvider[oMessage.provider]++; aUnreadMessagesByProvider[oMessage.provider]++;
if (iCount < this.options.display_limit + 4) { if (iCount < this.options.display_limit + 4) {
var sMessageItem = this._buildMessageItems(oMessage.id, oMessage.text, oMessage.image, oMessage.start_date, oMessage.provider, oMessage.url, oMessage.target, oConverter) var sMessageItem = this._buildMessageItems(oMessage.id, oMessage.text, oMessage.image, oMessage.start_date, oMessage.provider, oMessage.url, oMessage.target, oMessage.priority, oConverter)
sMessageSection += sMessageItem; sMessageSection += sMessageItem;
} }
iCount++; iCount++;
@@ -293,7 +294,7 @@ $(function()
$('.ibo-navigation-menu--notifications--item--content img').each(function(){ $('.ibo-navigation-menu--notifications--item--content img').each(function(){
tippy(this, {'content': this.outerHTML, 'placement': 'left', 'trigger': 'mouseenter focus', 'animation':'shift-away-subtle', 'allowHTML': true }); tippy(this, {'content': this.outerHTML, 'placement': 'left', 'trigger': 'mouseenter focus', 'animation':'shift-away-subtle', 'allowHTML': true });
}); });
CombodoTooltip.InitAllNonInstantiatedTooltips($(this.element), true);
// Add events listeners // Add events listeners
$(this.js_selectors.notification_message).on('click', function(oEvent){ $(this.js_selectors.notification_message).on('click', function(oEvent){
me._handleClick(this, oEvent); me._handleClick(this, oEvent);