UI improvements in the table calendar view.
This commit is contained in:
parent
bc1b82b7da
commit
310e472189
2 changed files with 9 additions and 2 deletions
|
@ -426,7 +426,7 @@ body .form-horizontal .controls {
|
||||||
}
|
}
|
||||||
|
|
||||||
#calendar .calendar-view {
|
#calendar .calendar-view {
|
||||||
overflow-x: scroll;
|
overflow-x: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
#calendar .calendar-view > div {
|
#calendar .calendar-view > div {
|
||||||
|
|
|
@ -421,6 +421,10 @@ window.BackendCalendarTableView = window.BackendCalendarTableView || {};
|
||||||
}
|
}
|
||||||
|
|
||||||
function _createProviderColumn($dateColumn, date, provider, events) {
|
function _createProviderColumn($dateColumn, date, provider, events) {
|
||||||
|
if (provider.services.length === 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var $providerColumn = $('<div class="provider-column" />').appendTo($dateColumn);
|
var $providerColumn = $('<div class="provider-column" />').appendTo($dateColumn);
|
||||||
|
|
||||||
$providerColumn.data('provider', provider);
|
$providerColumn.data('provider', provider);
|
||||||
|
@ -591,7 +595,10 @@ window.BackendCalendarTableView = window.BackendCalendarTableView || {};
|
||||||
|
|
||||||
$('.calendar-view > div').css('min-width', width + 50);
|
$('.calendar-view > div').css('min-width', width + 50);
|
||||||
|
|
||||||
$('.calendar-view .not-working').outerHeight($('.date-column').outerHeight() - 70);
|
|
||||||
|
var dateColumnHeight = $('.date-column').outerHeight();
|
||||||
|
|
||||||
|
$('.calendar-view .not-working').outerHeight((dateColumnHeight > height ? dateColumnHeight : height ) - 70);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue