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

Commit

Permalink
updated scheduler to instantiate radio based on label
Browse files Browse the repository at this point in the history
  • Loading branch information
mbeard committed Apr 10, 2015
1 parent 27ac0e7 commit 01eee29
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/scheduler.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
this.$element.find('.datepicker').on('changed.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, .repeat-yearly .radio').on('change.fu.scheduler', $.proxy(this.changed, this));
this.$element.find('.repeat-monthly .radio-custom, .repeat-yearly .radio-custom').on('change.fu.scheduler', $.proxy(this.changed, this));
};

Scheduler.prototype = {
Expand All @@ -122,7 +122,7 @@
this.$element.find('.datepicker').datepicker('destroy');
this.$element.find('.selectlist').selectlist('destroy');
this.$element.find('.spinbox').spinbox('destroy');
this.$element.find('[type=radio]').radio('destroy');
this.$element.find('.radio-custom').radio('destroy');
this.$element.remove();

// any external bindings
Expand Down Expand Up @@ -609,7 +609,7 @@
this.$element.find('.datepicker').datepicker(action);
this.$element.find('.selectlist').selectlist(action);
this.$element.find('.spinbox').spinbox(action);
this.$element.find('[type=radio]').radio(action);
this.$element.find('.radio-custom').radio(action);

if (action === 'disable') {
action = 'addClass';
Expand Down

0 comments on commit 01eee29

Please sign in to comment.