mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-10 10:02:33 +03:00
Show the appointment duration only if its different than the standard value.
This commit is contained in:
parent
4bd0f3661c
commit
eef6966798
1 changed files with 4 additions and 3 deletions
|
@ -165,8 +165,8 @@ window.BackendCalendarTableView = window.BackendCalendarTableView || {};
|
||||||
$(event.target).popover('toggle');
|
$(event.target).popover('toggle');
|
||||||
|
|
||||||
// Fix popover position
|
// Fix popover position
|
||||||
if ($('.popover').length > 0) {
|
if ($('.popover').length > 0 && $('.popover').position().top < 200) {
|
||||||
if ($('.popover').position().top < 200) $('.popover').css('top', '200px');
|
$('.popover').css('top', '200px');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -606,7 +606,8 @@ window.BackendCalendarTableView = window.BackendCalendarTableView || {};
|
||||||
|
|
||||||
$event.html(
|
$event.html(
|
||||||
appointment.customer.last_name +
|
appointment.customer.last_name +
|
||||||
' <span class="hour">' + startDate.toString('HH:mm') + '</span> (' + eventDuration + '\')'
|
' <span class="hour">' + startDate.toString('HH:mm') + '</span> '
|
||||||
|
+ (eventDuration !== parseInt(appointment.service.duration) ? '(' + eventDuration + '\')' : '')
|
||||||
);
|
);
|
||||||
|
|
||||||
$event.data(appointment);
|
$event.data(appointment);
|
||||||
|
|
Loading…
Reference in a new issue