Minor - merge from 1.11.x

pull/2650/head^2
Julio Montoya 6 years ago
parent fc5888f127
commit 6249c6e4af
  1. 29
      main/template/default/agenda/month.html.twig

@ -279,6 +279,35 @@ $(document).ready(function() {
var diffDays = moment(end).diff(start, 'days');
var endDateMinusOne = '';
// If event is not editable then just return the qtip
if (!calEvent.editable) {
var onHoverInfo = '';
{% if calEvent.description %}
if (calEvent.description) {
onHoverInfo = calEvent.description;
}
{% endif %}
{% if on_hover_info.comment %}
if (calEvent.comment) {
onHoverInfo = onHoverInfo + calEvent.comment;
}
{% endif %}
if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
$(this).qtip({
overwrite: false,
show: {ready: true},
content: onHoverInfo,
position: {
at: 'top center',
my: 'bottom center'
}
});
return;
}
}
if (end) {
var clone = end.clone();
endDateMinusOne = clone.subtract(1, 'days').format('{{ js_format_date }}');

Loading…
Cancel
Save