Do not show open_notified button if there's no link available

This commit is contained in:
Hadi Nategh 2018-02-16 12:02:43 +01:00
parent de17d9a2ea
commit 56bba60b6e
2 changed files with 9 additions and 7 deletions

View File

@ -201,12 +201,14 @@
.addClass('egwpopup_message_date') .addClass('egwpopup_message_date')
.prependTo($top_toolbar) .prependTo($top_toolbar)
.text(notifymessages[id]['created']); .text(notifymessages[id]['created']);
// OPEN entry button if (notifymessages[id]['data']['id'] || notifymessages[id]['data']['url']) {
$open_entry = jQuery(document.createElement('span')) // OPEN entry button
.addClass('egwpopup_message_open') $open_entry = jQuery(document.createElement('span'))
.attr('title',egw.lang('open notified entry')) .addClass('egwpopup_message_open')
.click(jQuery.proxy(this.open_entry, this,[$message])) .attr('title',egw.lang('open notified entry'))
.prependTo($top_toolbar); .click(jQuery.proxy(this.open_entry, this,[$message]))
.prependTo($top_toolbar);
}
// Delete button // Delete button
$delete = jQuery(document.createElement('span')) $delete = jQuery(document.createElement('span'))
.addClass('egwpopup_delete') .addClass('egwpopup_delete')

View File

@ -59,7 +59,7 @@ mark all as read notifications de Alle als gelesen markieren
mark as read notifications de Als gelesen markieren mark as read notifications de Als gelesen markieren
message from notifications de Nachricht von message from notifications de Nachricht von
minutes notifications de Minuten minutes notifications de Minuten
more info notifications de Mehr ... more info notifications de Mehr
notification common de Benachrichtigung notification common de Benachrichtigung
notifier notifications de Benachrichtiger notifier notifications de Benachrichtiger
notify me by notifications de Benachrichtige mich per notify me by notifications de Benachrichtige mich per