Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-39639 Formslib: Hide calendar for datetime element on disable event

  • Loading branch information...
commit b625e48b872cbba3854d40bc56a077380000f940 1 parent a327e87
@rajeshtaneja rajeshtaneja authored danpoltawski committed
Showing with 1 addition and 0 deletions.
  1. +1 −0  lib/form/yui/dateselector/dateselector.js
View
1  lib/form/yui/dateselector/dateselector.js
@@ -166,6 +166,7 @@ YUI.add('moodle-form-dateselector', function(Y) {
if (!this.enablecheckbox.get('checked')) {
this.calendarimage.set('disabled', 'disabled');
this.calendarimage.setStyle('cursor', 'default');
+ this.release_calendar();
} else {
this.calendarimage.set('disabled', false);
this.calendarimage.setStyle('cursor', 'auto');
Please sign in to comment.
Something went wrong with that request. Please try again.