Skip to content

Commit a36f700

Browse files
committed
Fix position see BT#10952
1 parent 6990959 commit a36f700

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

main/calendar/agenda.lib.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1456,6 +1456,7 @@ public function get_course_events($start, $end, $courseInfo, $groupId = 0, $sess
14561456

14571457
$eventsAdded[] = $event['unique_id'];
14581458
$attachmentList = $this->getAttachmentList($row['id'], $courseInfo);
1459+
$event['attachment'] = '';
14591460

14601461
if (!empty($attachmentList)) {
14611462
foreach ($attachmentList as $attachment) {
@@ -1464,9 +1465,6 @@ public function get_course_events($start, $end, $courseInfo, $groupId = 0, $sess
14641465
$url = api_get_path(WEB_CODE_PATH).'calendar/download.php?file='.$attachment['path'].'&course_id='.$course_id.'&'.api_get_cidreq();
14651466
$event['attachment'] .= $has_attachment.Display::url($user_filename, $url).'<br />';
14661467
}
1467-
1468-
} else {
1469-
$event['attachment'] = '';
14701468
}
14711469

14721470
$event['title'] = $row['title'];

main/template/default/agenda/month.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ $(document).ready(function() {
231231
delay: 2000
232232
},
233233
content: event.attachment,
234-
position: { at:'top right' , my:'bottom right'}
234+
position: { at:'bottom right'}
235235
}).removeData('qtip'); // this is an special hack to add multiple qtip in the same target
236236
}
237237
if (event.description) {
@@ -245,7 +245,7 @@ $(document).ready(function() {
245245
delay: 2000
246246
},
247247
content: event.description + ' ' + comment,
248-
position: { at:'top left' , my:'bottom left'}
248+
position: { at:'top right' , my:'bottom left'}
249249
});
250250
}
251251
},

0 commit comments

Comments
 (0)