Add jump by year, start working on popovers

This commit is contained in:
Mike Koch 2016-02-04 09:09:00 -05:00
parent e771090e51
commit d8acf87d48
2 changed files with 23 additions and 1 deletions

View File

@ -303,6 +303,14 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
</div> </div>
</div> </div>
</div> </div>
<div class="popover-template" style="display: none">
<div class="row">
<div class="col-md-6">
<i class="fa fa-clock"></i>
<p>00:00 - 00:00</p>
</div>
</div>
</div>
<?php <?php

View File

@ -1,7 +1,7 @@
$(document).ready(function() { $(document).ready(function() {
$('#calendar').fullCalendar({ $('#calendar').fullCalendar({
header: { header: {
left: 'prev,next today', left: 'prevYear,prev,next,nextYear today',
center: 'title', center: 'title',
right: 'month,agendaWeek,agendaDay' right: 'month,agendaWeek,agendaDay'
}, },
@ -90,6 +90,20 @@ $(document).ready(function() {
} }
}); });
} }
},
eventMouseover: function(event, jsEvent, view) {
$eventMarkup = $(this);
$eventMarkup.popover({
title: event.title,
html: true,
content: $('.popover-template').html(),
animation: true,
container: 'body',
placement: 'auto'
}).popover('show');
},
eventMouseout: function (event, jsEvent, view) {
$(this).popover('destroy');
} }
}); });