Skip to content

Commit

Permalink
MDL-39639 Formslib: Hide calendar for datetime element on disable event
Browse files Browse the repository at this point in the history
  • Loading branch information
Rajesh Taneja authored and danpoltawski committed Jun 10, 2013
1 parent a327e87 commit b625e48
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/form/yui/dateselector/dateselector.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit b625e48

Please sign in to comment.