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 da586c3512
commit a92023c02f
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')