Fix position see BT#10952

1.9.x
Julio 10 years ago
parent 699095912e
commit a36f700c59
  1. 4
      main/calendar/agenda.lib.php
  2. 4
      main/template/default/agenda/month.tpl

@ -1456,6 +1456,7 @@ class Agenda
$eventsAdded[] = $event['unique_id']; $eventsAdded[] = $event['unique_id'];
$attachmentList = $this->getAttachmentList($row['id'], $courseInfo); $attachmentList = $this->getAttachmentList($row['id'], $courseInfo);
$event['attachment'] = '';
if (!empty($attachmentList)) { if (!empty($attachmentList)) {
foreach ($attachmentList as $attachment) { 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(); $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).'<br />'; $event['attachment'] .= $has_attachment.Display::url($user_filename, $url).'<br />';
} }
} else {
$event['attachment'] = '';
} }
$event['title'] = $row['title']; $event['title'] = $row['title'];

@ -231,7 +231,7 @@ $(document).ready(function() {
delay: 2000 delay: 2000
}, },
content: event.attachment, 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 }).removeData('qtip'); // this is an special hack to add multiple qtip in the same target
} }
if (event.description) { if (event.description) {
@ -245,7 +245,7 @@ $(document).ready(function() {
delay: 2000 delay: 2000
}, },
content: event.description + ' ' + comment, content: event.description + ' ' + comment,
position: { at:'top left' , my:'bottom left'} position: { at:'top right' , my:'bottom left'}
}); });
} }
}, },

Loading…
Cancel
Save