MOBILE-3104 calendar: Fix calendar month mini param

main
Pau Ferrer Ocaña 2019-08-13 13:24:31 +02:00
parent 8327a21f13
commit dcec83759f
3 changed files with 10 additions and 4 deletions

View File

@ -0,0 +1,3 @@
page-addon-calendar-index .toolbar-ios ion-title {
@include padding-horizontal(null, 120px);
}

View File

@ -1176,10 +1176,15 @@ export class AddonCalendarProvider {
const data: any = {
year: year,
month: month,
mini: 1 // Set mini to 1 to prevent returning the course selector HTML.
month: month
};
// 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) {
data.courseid = courseId;
}

View File

@ -160,7 +160,6 @@ export class CoreFormatTextDirective implements OnChanges {
*/
addMagnifyingGlasses(): void {
const imgs = Array.from(this.element.querySelectorAll('.core-adapted-img-container > img'));
console.error(this.element, imgs);
if (!imgs.length) {
return;
}
@ -199,7 +198,6 @@ export class CoreFormatTextDirective implements OnChanges {
this.domUtils.viewImage(imgSrc, img.getAttribute('alt'), this.component, this.componentId);
});
console.error(img.parentNode, anchor);
img.parentNode.appendChild(anchor);
});
}