Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Commit

Permalink
Merge pull request #1350 from interactivellama/scheduler-fire-changed…
Browse files Browse the repository at this point in the history
…-event

Trigger `changed` event when scheduler's datepicker `dateClicked` is triggered
  • Loading branch information
Stephen Williams committed Jun 10, 2015
2 parents d7c3e01 + 7640df4 commit 30d3979
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,13 @@ define(function (require) {

// events
$('#myDatepicker').on('changed.fu.datepicker', function (event, data) {
log('datepicker change event fired');
log('datepicker change event fired: ' + data);
});

$('#myDatepicker').on('dateClicked.fu.datepicker', function (event, data) {
log('datepicker dateClicked event fired: ' + data);
});

$('#myDatepicker').on('inputParsingFailed.fu.datepicker', function () {
log('datepicker inputParsingFailed event fired');
});
Expand Down
1 change: 1 addition & 0 deletions js/scheduler.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@
});
this.$element.find('.combobox').on('changed.fu.combobox', $.proxy(this.changed, this));
this.$element.find('.datepicker').on('changed.fu.datepicker', $.proxy(this.changed, this));
this.$element.find('.datepicker').on('dateClicked.fu.datepicker', $.proxy(this.changed, this));
this.$element.find('.selectlist').on('changed.fu.selectlist', $.proxy(this.changed, this));
this.$element.find('.spinbox').on('changed.fu.spinbox', $.proxy(this.changed, this));
this.$element.find('.repeat-monthly .radio-custom, .repeat-yearly .radio-custom').on('change.fu.scheduler', $.proxy(this.changed, this));
Expand Down

0 comments on commit 30d3979

Please sign in to comment.