forked from CIT/Vmeda.Online
		
	
						commit
						e9999c6cda
					
				@ -423,7 +423,7 @@ export class AddonCalendarEditEventPage implements OnInit, OnDestroy {
 | 
				
			|||||||
    submit(): void {
 | 
					    submit(): void {
 | 
				
			||||||
        // Validate data.
 | 
					        // Validate data.
 | 
				
			||||||
        const formData = this.eventForm.value,
 | 
					        const formData = this.eventForm.value,
 | 
				
			||||||
            timeStartDate = this.timeUtils.datetimeToDate(formData.timestart),
 | 
					            timeStartDate = new Date(formData.timestart),
 | 
				
			||||||
            timeUntilDate = this.timeUtils.datetimeToDate(formData.timedurationuntil),
 | 
					            timeUntilDate = this.timeUtils.datetimeToDate(formData.timedurationuntil),
 | 
				
			||||||
            timeDurationMinutes = parseInt(formData.timedurationminutes || '', 10);
 | 
					            timeDurationMinutes = parseInt(formData.timedurationminutes || '', 10);
 | 
				
			||||||
        let error;
 | 
					        let error;
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										3
									
								
								src/addon/calendar/pages/index/index.scss
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								src/addon/calendar/pages/index/index.scss
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,3 @@
 | 
				
			|||||||
 | 
					page-addon-calendar-index .toolbar-ios ion-title {
 | 
				
			||||||
 | 
					    @include padding-horizontal(null, 120px);
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@ -1176,10 +1176,15 @@ export class AddonCalendarProvider {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
            const data: any = {
 | 
					            const data: any = {
 | 
				
			||||||
                year: year,
 | 
					                year: year,
 | 
				
			||||||
                month: month,
 | 
					                month: month
 | 
				
			||||||
                mini: 1 // Set mini to 1 to prevent returning the course selector HTML.
 | 
					 | 
				
			||||||
            };
 | 
					            };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            // This parameter requires Moodle 3.5.
 | 
				
			||||||
 | 
					            if ( site.isVersionGreaterEqualThan('3.5')) {
 | 
				
			||||||
 | 
					                // Set mini to 1 to prevent returning the course selector HTML.
 | 
				
			||||||
 | 
					                data.mini = 1;
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            if (courseId) {
 | 
					            if (courseId) {
 | 
				
			||||||
                data.courseid = courseId;
 | 
					                data.courseid = courseId;
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
				
			|||||||
@ -160,7 +160,6 @@ export class CoreFormatTextDirective implements OnChanges {
 | 
				
			|||||||
     */
 | 
					     */
 | 
				
			||||||
    addMagnifyingGlasses(): void {
 | 
					    addMagnifyingGlasses(): void {
 | 
				
			||||||
        const imgs = Array.from(this.element.querySelectorAll('.core-adapted-img-container > img'));
 | 
					        const imgs = Array.from(this.element.querySelectorAll('.core-adapted-img-container > img'));
 | 
				
			||||||
        console.error(this.element, imgs);
 | 
					 | 
				
			||||||
        if (!imgs.length) {
 | 
					        if (!imgs.length) {
 | 
				
			||||||
            return;
 | 
					            return;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
@ -199,7 +198,6 @@ export class CoreFormatTextDirective implements OnChanges {
 | 
				
			|||||||
                this.domUtils.viewImage(imgSrc, img.getAttribute('alt'), this.component, this.componentId);
 | 
					                this.domUtils.viewImage(imgSrc, img.getAttribute('alt'), this.component, this.componentId);
 | 
				
			||||||
            });
 | 
					            });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            console.error(img.parentNode, anchor);
 | 
					 | 
				
			||||||
            img.parentNode.appendChild(anchor);
 | 
					            img.parentNode.appendChild(anchor);
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user