diff --git a/assets/js/backend_calendar_default_view.js b/assets/js/backend_calendar_default_view.js
index 0388281e..b9158c9f 100755
--- a/assets/js/backend_calendar_default_view.js
+++ b/assets/js/backend_calendar_default_view.js
@@ -291,10 +291,10 @@ window.BackendCalendarDefaultView = window.BackendCalendarDefaultView || {};
if ($(this).hasClass('fc-unavailable') || $parent.hasClass('fc-unavailable') || $altParent.hasClass('fc-unavailable')) {
displayEdit = (($parent.hasClass('fc-custom') || $altParent.hasClass('fc-custom'))
&& GlobalVariables.user.privileges.appointments.edit === true)
- ? '' : 'hide';
+ ? 'mr-2' : 'd-none';
displayDelete = (($parent.hasClass('fc-custom') || $altParent.hasClass('fc-custom'))
&& GlobalVariables.user.privileges.appointments.delete === true)
- ? '' : 'hide'; // Same value at the time.
+ ? 'mr-2' : 'd-none'; // Same value at the time.
var notes = '';
if (event.data) { // Only custom unavailable periods have notes.
@@ -327,7 +327,7 @@ window.BackendCalendarDefaultView = window.BackendCalendarDefaultView || {};
$('
'),
$('', {
- 'class': 'd-flex justify-content-between',
+ 'class': 'd-flex justify-content-center',
'html': [
$('', {
'class': 'edit-popover btn btn-primary ' + displayEdit,
@@ -348,7 +348,7 @@ window.BackendCalendarDefaultView = window.BackendCalendarDefaultView || {};
} else if ($(this).hasClass('fc-extra') || $parent.hasClass('fc-extra') || $altParent.hasClass('fc-extra')) {
displayDelete = (($parent.hasClass('fc-custom') || $altParent.hasClass('fc-custom'))
&& GlobalVariables.user.privileges.appointments.delete === true)
- ? '' : 'hide'; // Same value at the time.
+ ? 'mr-2' : 'd-none'; // Same value at the time.
var provider = '';
@@ -411,9 +411,9 @@ window.BackendCalendarDefaultView = window.BackendCalendarDefaultView || {};
});
} else {
displayEdit = (GlobalVariables.user.privileges.appointments.edit === true)
- ? '' : 'hide';
+ ? 'mr-2' : 'd-none';
displayDelete = (GlobalVariables.user.privileges.appointments.delete === true)
- ? '' : 'hide';
+ ? 'mr-2' : 'd-none';
$html = $('', {
'html': [
@@ -488,7 +488,7 @@ window.BackendCalendarDefaultView = window.BackendCalendarDefaultView || {};
$('
'),
$('', {
- 'class': 'd-flex justify-content-between',
+ 'class': 'd-flex justify-content-center',
'html': [
$('', {
'class': 'edit-popover btn btn-primary ' + displayEdit,
diff --git a/assets/js/backend_calendar_table_view.js b/assets/js/backend_calendar_table_view.js
index b3dc0d77..693412a9 100755
--- a/assets/js/backend_calendar_table_view.js
+++ b/assets/js/backend_calendar_table_view.js
@@ -1018,10 +1018,10 @@ window.BackendCalendarTableView = window.BackendCalendarTableView || {};
if ($(this).hasClass('fc-unavailable') || $parent.hasClass('fc-unavailable') || $altParent.hasClass('fc-unavailable')) {
displayEdit = (($parent.hasClass('fc-custom') || $altParent.hasClass('fc-custom'))
&& GlobalVariables.user.privileges.appointments.edit === true)
- ? '' : 'hide';
+ ? 'mr-2' : 'd-none';
displayDelete = (($parent.hasClass('fc-custom') || $altParent.hasClass('fc-custom'))
&& GlobalVariables.user.privileges.appointments.delete === true)
- ? '' : 'hide'; // Same value at the time.
+ ? 'mr-2' : 'd-none'; // Same value at the time.
var notes = '';
if (event.data) { // Only custom unavailable periods have notes.
@@ -1075,7 +1075,7 @@ window.BackendCalendarTableView = window.BackendCalendarTableView || {};
} else if ($(this).hasClass('fc-extra') || $parent.hasClass('fc-extra') || $altParent.hasClass('fc-extra')) {
displayDelete = (($parent.hasClass('fc-custom') || $altParent.hasClass('fc-custom'))
&& GlobalVariables.user.privileges.appointments.delete === true)
- ? '' : 'hide'; // Same value at the time.
+ ? 'mr-2' : 'd-none'; // Same value at the time.
var provider = '';
@@ -1122,7 +1122,7 @@ window.BackendCalendarTableView = window.BackendCalendarTableView || {};
$('
'),
$('', {
- 'class': 'd-flex justify-content-between',
+ 'class': 'd-flex justify-content-center',
'html': [
$('', {
'class': 'delete-popover btn btn-danger ' + displayDelete,
@@ -1138,9 +1138,9 @@ window.BackendCalendarTableView = window.BackendCalendarTableView || {};
});
} else {
displayEdit = (GlobalVariables.user.privileges.appointments.edit === true)
- ? '' : 'hide';
+ ? 'mr-2' : 'd-none';
displayDelete = (GlobalVariables.user.privileges.appointments.delete === true)
- ? '' : 'hide';
+ ? 'mr-2' : 'd-none';
$html = $('', {
'html': [
@@ -1215,7 +1215,7 @@ window.BackendCalendarTableView = window.BackendCalendarTableView || {};
$('
'),
$('', {
- 'class': 'd-flex justify-content-between',
+ 'class': 'd-flex justify-content-center',
'html': [
$('', {
'class': 'edit-popover btn btn-primary ' + displayEdit,