diff --git a/admin/calendar.php b/admin/calendar.php index 58ed4e22..48f86006 100644 --- a/admin/calendar.php +++ b/admin/calendar.php @@ -89,7 +89,15 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
-

Calendar

+

+ Calendar + + + +

diff --git a/js/calendar/mods-for-hesk-calendar.js b/js/calendar/mods-for-hesk-calendar.js index 689435e4..5d9f69a4 100644 --- a/js/calendar/mods-for-hesk-calendar.js +++ b/js/calendar/mods-for-hesk-calendar.js @@ -142,6 +142,12 @@ $(document).ready(function() { } }); + $('#create-event-button').click(function() { + // Hard-code the view name so the modal treats this as an "all-day" event. + var viewName = 'month'; + displayCreateModal(moment(), viewName); + }) + $('#create-form input[name="all-day"]').change(function() { var hideTimeFields = $(this).is(':checked');