Skip to content

Commit

Permalink
Fix JQMigrate click reported issue
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware committed Jan 28, 2024
1 parent 6b114a7 commit af29e24
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@
if (! options.autoclose) {
// If autoclose is not setted, append a button
$('<button type="button" class="btn btn-sm btn-default btn-block clockpicker-button">' + options.donetext + '</button>')
.click($.proxy(this.done, this))
.on("click.clockpicker", $.proxy(this.done, this))
.appendTo(popover);
}

Expand All @@ -173,8 +173,8 @@
popover.addClass(options.placement);
popover.addClass('clockpicker-align-' + options.align);

this.spanHours.click($.proxy(this.toggleView, this, 'hours'));
this.spanMinutes.click($.proxy(this.toggleView, this, 'minutes'));
this.spanHours.on("click.clockpicker",$.proxy(this.toggleView, this, 'hours'));
this.spanMinutes.on("click.clockpicker",$.proxy(this.toggleView, this, 'minutes'));

// Show or toggle
input.on('focus.clockpicker click.clockpicker', $.proxy(this.show, this));
Expand Down

0 comments on commit af29e24

Please sign in to comment.