diff --git a/admin/admin_settings.php b/admin/admin_settings.php index 7d3f1d22..9f3d82e6 100644 --- a/admin/admin_settings.php +++ b/admin/admin_settings.php @@ -552,6 +552,14 @@ if (defined('HESK_DEMO')) {
  • +
  • + + + + + +
  • @@ -1970,6 +1978,64 @@ if (defined('HESK_DEMO')) { + +
    +
    +
    +
    + +
    +

    +

    +
    '; + ?> +
    +
    +
    + +
    + +
    +
    + +
    1 ORDER BY `cat_order`"); $categories = []; @@ -490,6 +493,7 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');

    +

    1 AND `type` = '0' ORDER BY '" . $orderBy . "'"; diff --git a/install/mods-for-hesk/sql/installSql.php b/install/mods-for-hesk/sql/installSql.php index a07e9ee1..853725aa 100644 --- a/install/mods-for-hesk/sql/installSql.php +++ b/install/mods-for-hesk/sql/installSql.php @@ -741,5 +741,7 @@ function execute260Scripts() executeQuery("ALTER TABLE `" . hesk_dbEscape($hesk_settings['db_pfix']) . "categories` ADD COLUMN `color` VARCHAR(7)"); executeQuery("ALTER TABLE `" . hesk_dbEscape($hesk_settings['db_pfix']) . "categories` ADD COLUMN `usage` INT NOT NULL DEFAULT 0"); executeQuery("ALTER TABLE `" . hesk_dbEscape($hesk_settings['db_pfix']) . "users` ADD COLUMN `notify_overdue_unassigned` ENUM('0', '1') NOT NULL DEFAULT '0' AFTER `notify_note_unassigned`"); + executeQuery("INSERT INTO `" . hesk_dbEscape($hesk_settings['db_pfix']) . "settings` (`Key`, `Value`) VALUES ('enable_calendar', '1')"); + executeQuery("INSERT INTO `" . hesk_dbEscape($hesk_settings['db_pfix']) . "settings` (`Key`, `Value`) VALUES ('first_day_of_week', '0')"); executeQuery("UPDATE `" . hesk_dbEscape($hesk_settings['db_pfix']) . "settings` SET `Value` = '2.6.0' WHERE `Key` = 'modsForHeskVersion'"); } \ No newline at end of file diff --git a/js/calendar/mods-for-hesk-calendar.js b/js/calendar/mods-for-hesk-calendar.js index b80ebf9c..fcb05806 100644 --- a/js/calendar/mods-for-hesk-calendar.js +++ b/js/calendar/mods-for-hesk-calendar.js @@ -9,6 +9,7 @@ $(document).ready(function() { eventLimit: true, timeFormat: 'H:mm', axisFormat: 'H:mm', + firstDay: $('#setting_first_day_of_week').text(), events: function(start, end, timezone, callback) { $.ajax({ url: getHelpdeskUrl() + '/internal-api/admin/calendar/?start=' + start + '&end=' + end, diff --git a/language/en/text.php b/language/en/text.php index 243894f1..9513633b 100644 --- a/language/en/text.php +++ b/language/en/text.php @@ -85,6 +85,13 @@ $hesklang['can_man_calendar'] = 'Can manage calendar events'; $hesklang['calendar_reminder'] = 'Upcoming Event: %%TITLE%%'; $hesklang['overdue_ticket'] = '[%%TRACKID%%] Ticket Overdue!'; $hesklang['notify_overdue_unassigned'] = 'A ticket is overdue not assigned to me'; +$hesklang['calendar_settings'] = 'Calendar Settings'; +$hesklang['enable_calendar'] = 'Enable calendar'; +$hesklang['yes_enable_calendar'] = 'YES, enable calendar'; +$hesklang['yes_enable_calendar_staff_only'] = 'YES, enable calendar, but only for staff'; +$hesklang['no_disable_calendar'] = 'NO, disable calendar'; +$hesklang['first_day_of_week'] = 'First day of week'; +$hesklang['calendar_disabled'] = 'The calendar is disabled'; // ADDED OR MODIFIED IN Mods for HESK 2.5.2 $hesklang['manage_statuses'] = 'Manage Statuses';