mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
agenda drop down calendar
This commit is contained in:
@@ -176,7 +176,7 @@ export class AgendaPage implements OnInit {
|
||||
public eventService: EventsService,
|
||||
private router: Router,
|
||||
private dateAdapter: DateAdapter<any>,
|
||||
private listBoxService: ListBoxService,
|
||||
public listBoxService: ListBoxService,
|
||||
private changeProfileService: ChangeProfileService,
|
||||
private backgroundservice: BackgroundService,
|
||||
public ThemeService: ThemeService,
|
||||
@@ -274,6 +274,7 @@ export class AgendaPage implements OnInit {
|
||||
this.updateEventListBox()
|
||||
}
|
||||
realoadCounter++;
|
||||
this.weekToShow()
|
||||
}
|
||||
});
|
||||
|
||||
@@ -290,14 +291,12 @@ export class AgendaPage implements OnInit {
|
||||
}, 1000)
|
||||
}
|
||||
|
||||
height = 'unset'
|
||||
|
||||
weekToShow() {
|
||||
|
||||
setTimeout(() => {
|
||||
try {
|
||||
let weekNum = 0;
|
||||
|
||||
|
||||
function Week(a) {
|
||||
for(let b of a.querySelectorAll('td')) {
|
||||
if(!b.className.includes('text-muted')) {
|
||||
@@ -315,7 +314,11 @@ export class AgendaPage implements OnInit {
|
||||
}
|
||||
|
||||
this.showCalendar = true
|
||||
this.height = (weekNum * dayBoxHeight) +'px'
|
||||
this.listBoxService.height = (weekNum * dayBoxHeight) +'px'
|
||||
|
||||
if(dayBoxHeight == 0) {
|
||||
this.weekToShow()
|
||||
}
|
||||
} catch (e) {
|
||||
setTimeout(()=> {
|
||||
this.weekToShow()
|
||||
|
||||
Reference in New Issue
Block a user