Merge branch 'MDL-86765-501' of https://github.com/paulholden/moodle into MOODLE_501_STABLE

This commit is contained in:
Andrew Nicols
2025-11-25 20:52:02 +08:00
4 changed files with 4 additions and 4 deletions
@@ -380,7 +380,7 @@ CALENDAR.prototype = {
},
toggle_calendar_image: function() {
// If the enable checkbox is not checked, disable the calendar image and prevent focus.
if (!this.enablecheckbox.get('checked')) {
if (!this.enablecheckbox.get('checked') || this.enablecheckbox.get('disabled')) {
this.calendarimage.setAttribute('disabled');
this.release_calendar();
} else {
File diff suppressed because one or more lines are too long
@@ -380,7 +380,7 @@ CALENDAR.prototype = {
},
toggle_calendar_image: function() {
// If the enable checkbox is not checked, disable the calendar image and prevent focus.
if (!this.enablecheckbox.get('checked')) {
if (!this.enablecheckbox.get('checked') || this.enablecheckbox.get('disabled')) {
this.calendarimage.setAttribute('disabled');
this.release_calendar();
} else {
+1 -1
View File
@@ -172,7 +172,7 @@ CALENDAR.prototype = {
},
toggle_calendar_image: function() {
// If the enable checkbox is not checked, disable the calendar image and prevent focus.
if (!this.enablecheckbox.get('checked')) {
if (!this.enablecheckbox.get('checked') || this.enablecheckbox.get('disabled')) {
this.calendarimage.setAttribute('disabled');
this.release_calendar();
} else {