mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 09:36:05 -08:00
PR - day view
This commit is contained in:
@@ -116,6 +116,7 @@ $lang['en_us'] = array(
|
|||||||
'Presence_CalHead_quarter' => 'quarter',
|
'Presence_CalHead_quarter' => 'quarter',
|
||||||
'Presence_CalHead_month' => 'month',
|
'Presence_CalHead_month' => 'month',
|
||||||
'Presence_CalHead_week' => 'week',
|
'Presence_CalHead_week' => 'week',
|
||||||
|
'Presence_CalHead_day' => 'day',
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////
|
||||||
// Events Page
|
// Events Page
|
||||||
|
|||||||
@@ -234,7 +234,7 @@ function initializeCalendar () {
|
|||||||
header: {
|
header: {
|
||||||
left : 'prev,next today',
|
left : 'prev,next today',
|
||||||
center : 'title',
|
center : 'title',
|
||||||
right : 'timelineYear,timelineMonth,timelineWeek'
|
right : 'timelineYear,timelineMonth,timelineWeek,timelineDay'
|
||||||
},
|
},
|
||||||
defaultView : 'timelineMonth',
|
defaultView : 'timelineMonth',
|
||||||
height : 'auto',
|
height : 'auto',
|
||||||
@@ -286,6 +286,13 @@ function initializeCalendar () {
|
|||||||
buttonText : '<?= lang('Presence_CalHead_week');?>',
|
buttonText : '<?= lang('Presence_CalHead_week');?>',
|
||||||
slotLabelFormat : 'D',
|
slotLabelFormat : 'D',
|
||||||
slotDuration : '24:00:01'
|
slotDuration : '24:00:01'
|
||||||
|
},
|
||||||
|
timelineDay: {
|
||||||
|
type : 'timeline',
|
||||||
|
duration : { day: 1 },
|
||||||
|
buttonText : '<?= lang('Presence_CalHead_day');?>',
|
||||||
|
slotLabelFormat : 'H',
|
||||||
|
slotDuration : '00:30:00'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -305,6 +312,15 @@ function initializeCalendar () {
|
|||||||
|
|
||||||
if (date.format('YYYY-MM-DD') == moment().format('YYYY-MM-DD')) {
|
if (date.format('YYYY-MM-DD') == moment().format('YYYY-MM-DD')) {
|
||||||
cell.addClass ('fc-today'); };
|
cell.addClass ('fc-today'); };
|
||||||
|
|
||||||
|
if ($('#calendar').fullCalendar('getView').name == 'timelineDay') {
|
||||||
|
cell.removeClass('fc-sat');
|
||||||
|
cell.removeClass('fc-sun');
|
||||||
|
cell.removeClass('fc-today');
|
||||||
|
if (date.format('YYYY-MM-DD HH') == moment().format('YYYY-MM-DD HH')) {
|
||||||
|
cell.addClass('fc-today');
|
||||||
|
}
|
||||||
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
resourceRender: function (resourceObj, labelTds, bodyTds) {
|
resourceRender: function (resourceObj, labelTds, bodyTds) {
|
||||||
|
|||||||
Reference in New Issue
Block a user