Event popover display the provider timezone.
This commit is contained in:
parent
b639318dac
commit
534d6e1761
1 changed files with 13 additions and 4 deletions
|
@ -325,6 +325,9 @@ window.BackendCalendarDefaultView = window.BackendCalendarDefaultView || {};
|
||||||
+ '<br>' +
|
+ '<br>' +
|
||||||
'<strong>' + EALang.end + '</strong> '
|
'<strong>' + EALang.end + '</strong> '
|
||||||
+ GeneralFunctions.formatDate(event.end.format('YYYY-MM-DD HH:mm:ss'), GlobalVariables.dateFormat, true)
|
+ GeneralFunctions.formatDate(event.end.format('YYYY-MM-DD HH:mm:ss'), GlobalVariables.dateFormat, true)
|
||||||
|
+ '<br>' +
|
||||||
|
'<strong>' + EALang.timezone + '</strong> '
|
||||||
|
+ GlobalVariables.timezones[event.data.provider.timezone]
|
||||||
+ '<br>'
|
+ '<br>'
|
||||||
+ notes
|
+ notes
|
||||||
+ '<hr>' +
|
+ '<hr>' +
|
||||||
|
@ -343,7 +346,7 @@ window.BackendCalendarDefaultView = window.BackendCalendarDefaultView || {};
|
||||||
provider = '<strong>' + EALang.provider + '</strong> ' + event.data.first_name + ' ' + event.data.last_name;
|
provider = '<strong>' + EALang.provider + '</strong> ' + event.data.first_name + ' ' + event.data.last_name;
|
||||||
}
|
}
|
||||||
|
|
||||||
var extra_period = jQuery.parseJSON(event.data.settings.extra_working_plan)[event.start.format()];
|
var extraPeriod = jQuery.parseJSON(event.data.settings.extra_working_plan)[event.start.format()];
|
||||||
|
|
||||||
html =
|
html =
|
||||||
'<style type="text/css">'
|
'<style type="text/css">'
|
||||||
|
@ -351,11 +354,14 @@ window.BackendCalendarDefaultView = window.BackendCalendarDefaultView || {};
|
||||||
+ '.popover-content button {margin-right: 10px;}'
|
+ '.popover-content button {margin-right: 10px;}'
|
||||||
+ '</style>' +
|
+ '</style>' +
|
||||||
'<strong>' + EALang.start + '</strong> '
|
'<strong>' + EALang.start + '</strong> '
|
||||||
+ GeneralFunctions.formatDate(event.start.format() + ' ' + extra_period.start, GlobalVariables.dateFormat, true)
|
+ GeneralFunctions.formatDate(event.start.format() + ' ' + extraPeriod.start, GlobalVariables.dateFormat, true)
|
||||||
+ '<br>' +
|
+ '<br>' +
|
||||||
'<strong>' + EALang.end + '</strong> '
|
'<strong>' + EALang.end + '</strong> '
|
||||||
+ GeneralFunctions.formatDate(event.start.format() + ' ' + extra_period.end, GlobalVariables.dateFormat, true)
|
+ GeneralFunctions.formatDate(event.start.format() + ' ' + extraPeriod.end, GlobalVariables.dateFormat, true)
|
||||||
+ '<br>'
|
+ '<br>' +
|
||||||
|
'<strong>' + EALang.timezone + '</strong> '
|
||||||
|
+ GlobalVariables.timezones[event.data.provider.timezone]
|
||||||
|
+ '<br>' +
|
||||||
+ provider
|
+ provider
|
||||||
+ '<hr>' +
|
+ '<hr>' +
|
||||||
'<center>' +
|
'<center>' +
|
||||||
|
@ -380,6 +386,9 @@ window.BackendCalendarDefaultView = window.BackendCalendarDefaultView || {};
|
||||||
'<strong>' + EALang.end + '</strong> '
|
'<strong>' + EALang.end + '</strong> '
|
||||||
+ GeneralFunctions.formatDate(event.end.format('YYYY-MM-DD HH:mm:ss'), GlobalVariables.dateFormat, true)
|
+ GeneralFunctions.formatDate(event.end.format('YYYY-MM-DD HH:mm:ss'), GlobalVariables.dateFormat, true)
|
||||||
+ '<br>' +
|
+ '<br>' +
|
||||||
|
'<strong>' + EALang.timezone + '</strong> '
|
||||||
|
+ GlobalVariables.timezones[event.data.provider.timezone]
|
||||||
|
+ '<br>' +
|
||||||
'<strong>' + EALang.service + '</strong> '
|
'<strong>' + EALang.service + '</strong> '
|
||||||
+ event.data.service.name
|
+ event.data.service.name
|
||||||
+ '<br>' +
|
+ '<br>' +
|
||||||
|
|
Loading…
Reference in a new issue