|
|
|
@ -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 }}'); |
|
|
|
|