This commit is contained in:
Jun Pataleta
2022-03-29 10:51:30 +08:00
4 changed files with 16 additions and 16 deletions
@@ -360,14 +360,14 @@ CALENDAR.prototype = {
}
},
toggle_calendar_image: function() {
// If the enable checkbox is det checked, disable the image.
// If the enable checkbox is not checked, disable the calendar image and prevent focus.
if (!this.enablecheckbox.get('checked')) {
this.calendarimage.set('disabled', 'disabled');
this.calendarimage.setStyle('cursor', 'default');
this.calendarimage.addClass('disabled');
this.calendarimage.setAttribute('tabindex', -1);
this.release_calendar();
} else {
this.calendarimage.set('disabled', false);
this.calendarimage.setStyle('cursor', null);
this.calendarimage.removeClass('disabled');
this.calendarimage.setAttribute('tabindex', 0);
}
}
};
File diff suppressed because one or more lines are too long
@@ -360,14 +360,14 @@ CALENDAR.prototype = {
}
},
toggle_calendar_image: function() {
// If the enable checkbox is det checked, disable the image.
// If the enable checkbox is not checked, disable the calendar image and prevent focus.
if (!this.enablecheckbox.get('checked')) {
this.calendarimage.set('disabled', 'disabled');
this.calendarimage.setStyle('cursor', 'default');
this.calendarimage.addClass('disabled');
this.calendarimage.setAttribute('tabindex', -1);
this.release_calendar();
} else {
this.calendarimage.set('disabled', false);
this.calendarimage.setStyle('cursor', null);
this.calendarimage.removeClass('disabled');
this.calendarimage.setAttribute('tabindex', 0);
}
}
};
+5 -5
View File
@@ -152,14 +152,14 @@ CALENDAR.prototype = {
}
},
toggle_calendar_image: function() {
// If the enable checkbox is det checked, disable the image.
// If the enable checkbox is not checked, disable the calendar image and prevent focus.
if (!this.enablecheckbox.get('checked')) {
this.calendarimage.set('disabled', 'disabled');
this.calendarimage.setStyle('cursor', 'default');
this.calendarimage.addClass('disabled');
this.calendarimage.setAttribute('tabindex', -1);
this.release_calendar();
} else {
this.calendarimage.set('disabled', false);
this.calendarimage.setStyle('cursor', null);
this.calendarimage.removeClass('disabled');
this.calendarimage.setAttribute('tabindex', 0);
}
}
};