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')
.prependTo($top_toolbar)
.text(notifymessages[id]['created']);
// OPEN entry button
$open_entry = jQuery(document.createElement('span'))
.addClass('egwpopup_message_open')
.attr('title',egw.lang('open notified entry'))
.click(jQuery.proxy(this.open_entry, this,[$message]))
.prependTo($top_toolbar);
if (notifymessages[id]['data']['id'] || notifymessages[id]['data']['url']) {
// OPEN entry button
$open_entry = jQuery(document.createElement('span'))
.addClass('egwpopup_message_open')
.attr('title',egw.lang('open notified entry'))
.click(jQuery.proxy(this.open_entry, this,[$message]))
.prependTo($top_toolbar);
}
// Delete button
$delete = jQuery(document.createElement('span'))
.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
message from notifications de Nachricht von
minutes notifications de Minuten
more info notifications de Mehr ...
more info notifications de Mehr
notification common de Benachrichtigung
notifier notifications de Benachrichtiger
notify me by notifications de Benachrichtige mich per