From a36f700c5989e7a8879d4b97795f817c6da212d3 Mon Sep 17 00:00:00 2001 From: Julio Date: Wed, 23 Mar 2016 13:18:05 +0100 Subject: [PATCH] Fix position see BT#10952 --- main/calendar/agenda.lib.php | 4 +--- main/template/default/agenda/month.tpl | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/main/calendar/agenda.lib.php b/main/calendar/agenda.lib.php index ba83283fda..8aaaf8ef95 100755 --- a/main/calendar/agenda.lib.php +++ b/main/calendar/agenda.lib.php @@ -1456,6 +1456,7 @@ class Agenda $eventsAdded[] = $event['unique_id']; $attachmentList = $this->getAttachmentList($row['id'], $courseInfo); + $event['attachment'] = ''; if (!empty($attachmentList)) { foreach ($attachmentList as $attachment) { @@ -1464,9 +1465,6 @@ class Agenda $url = api_get_path(WEB_CODE_PATH).'calendar/download.php?file='.$attachment['path'].'&course_id='.$course_id.'&'.api_get_cidreq(); $event['attachment'] .= $has_attachment.Display::url($user_filename, $url).'
'; } - - } else { - $event['attachment'] = ''; } $event['title'] = $row['title']; diff --git a/main/template/default/agenda/month.tpl b/main/template/default/agenda/month.tpl index 632724d72d..1eb5511a21 100755 --- a/main/template/default/agenda/month.tpl +++ b/main/template/default/agenda/month.tpl @@ -231,7 +231,7 @@ $(document).ready(function() { delay: 2000 }, content: event.attachment, - position: { at:'top right' , my:'bottom right'} + position: { at:'bottom right'} }).removeData('qtip'); // this is an special hack to add multiple qtip in the same target } if (event.description) { @@ -245,7 +245,7 @@ $(document).ready(function() { delay: 2000 }, content: event.description + ' ' + comment, - position: { at:'top left' , my:'bottom left'} + position: { at:'top right' , my:'bottom left'} }); } },