mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-22 07:52:29 +03:00
fix calendar popover buttons
This commit is contained in:
parent
1e855182bd
commit
32b5742bd0
2 changed files with 6 additions and 10 deletions
|
@ -67,8 +67,6 @@ window.BackendCalendarDefaultView = window.BackendCalendarDefaultView || {};
|
||||||
|
|
||||||
var $dialog;
|
var $dialog;
|
||||||
|
|
||||||
console.log(lastFocusedEventData.data)
|
|
||||||
|
|
||||||
if (lastFocusedEventData.data.is_unavailable === '0') {
|
if (lastFocusedEventData.data.is_unavailable === '0') {
|
||||||
var appointment = lastFocusedEventData.data;
|
var appointment = lastFocusedEventData.data;
|
||||||
$dialog = $('#manage-appointment');
|
$dialog = $('#manage-appointment');
|
||||||
|
@ -329,7 +327,7 @@ window.BackendCalendarDefaultView = window.BackendCalendarDefaultView || {};
|
||||||
$('<hr/>'),
|
$('<hr/>'),
|
||||||
|
|
||||||
$('<div/>', {
|
$('<div/>', {
|
||||||
'class': 'text-center',
|
'class': 'd-flex justify-content-between',
|
||||||
'html': [
|
'html': [
|
||||||
$('<button/>', {
|
$('<button/>', {
|
||||||
'class': 'edit-popover btn btn-primary ' + displayEdit,
|
'class': 'edit-popover btn btn-primary ' + displayEdit,
|
||||||
|
@ -397,7 +395,7 @@ window.BackendCalendarDefaultView = window.BackendCalendarDefaultView || {};
|
||||||
$('<hr/>'),
|
$('<hr/>'),
|
||||||
|
|
||||||
$('<div/>', {
|
$('<div/>', {
|
||||||
'class': 'text-center',
|
'class': 'd-flex justify-content-between',
|
||||||
'html': [
|
'html': [
|
||||||
$('<button/>', {
|
$('<button/>', {
|
||||||
'class': 'delete-popover btn btn-danger ' + displayDelete,
|
'class': 'delete-popover btn btn-danger ' + displayDelete,
|
||||||
|
@ -490,7 +488,7 @@ window.BackendCalendarDefaultView = window.BackendCalendarDefaultView || {};
|
||||||
$('<hr/>'),
|
$('<hr/>'),
|
||||||
|
|
||||||
$('<div/>', {
|
$('<div/>', {
|
||||||
'class': 'text-center',
|
'class': 'd-flex justify-content-between',
|
||||||
'html': [
|
'html': [
|
||||||
$('<button/>', {
|
$('<button/>', {
|
||||||
'class': 'edit-popover btn btn-primary ' + displayEdit,
|
'class': 'edit-popover btn btn-primary ' + displayEdit,
|
||||||
|
@ -696,8 +694,6 @@ window.BackendCalendarDefaultView = window.BackendCalendarDefaultView || {};
|
||||||
$('#notification').hide('bind');
|
$('#notification').hide('bind');
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(event.data)
|
|
||||||
|
|
||||||
if (event.data.is_unavailable === '0') {
|
if (event.data.is_unavailable === '0') {
|
||||||
// Prepare appointment data.
|
// Prepare appointment data.
|
||||||
var appointment = GeneralFunctions.clone(event.data);
|
var appointment = GeneralFunctions.clone(event.data);
|
||||||
|
|
|
@ -1054,7 +1054,7 @@ window.BackendCalendarTableView = window.BackendCalendarTableView || {};
|
||||||
$('<hr/>'),
|
$('<hr/>'),
|
||||||
|
|
||||||
$('<div/>', {
|
$('<div/>', {
|
||||||
'class': 'text-center',
|
'class': 'd-flex justify-content-between',
|
||||||
'html': [
|
'html': [
|
||||||
$('<button/>', {
|
$('<button/>', {
|
||||||
'class': 'edit-popover btn btn-primary ' + displayEdit,
|
'class': 'edit-popover btn btn-primary ' + displayEdit,
|
||||||
|
@ -1122,7 +1122,7 @@ window.BackendCalendarTableView = window.BackendCalendarTableView || {};
|
||||||
$('<hr/>'),
|
$('<hr/>'),
|
||||||
|
|
||||||
$('<div/>', {
|
$('<div/>', {
|
||||||
'class': 'text-center',
|
'class': 'd-flex justify-content-between',
|
||||||
'html': [
|
'html': [
|
||||||
$('<button/>', {
|
$('<button/>', {
|
||||||
'class': 'delete-popover btn btn-danger ' + displayDelete,
|
'class': 'delete-popover btn btn-danger ' + displayDelete,
|
||||||
|
@ -1215,7 +1215,7 @@ window.BackendCalendarTableView = window.BackendCalendarTableView || {};
|
||||||
$('<hr/>'),
|
$('<hr/>'),
|
||||||
|
|
||||||
$('<div/>', {
|
$('<div/>', {
|
||||||
'class': 'text-center',
|
'class': 'd-flex justify-content-between',
|
||||||
'html': [
|
'html': [
|
||||||
$('<button/>', {
|
$('<button/>', {
|
||||||
'class': 'edit-popover btn btn-primary ' + displayEdit,
|
'class': 'edit-popover btn btn-primary ' + displayEdit,
|
||||||
|
|
Loading…
Reference in a new issue