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

Commit

Permalink
Remove previous click handlers from confirm events.
Browse files Browse the repository at this point in the history
  • Loading branch information
aandis authored and chadwhitacre committed Aug 9, 2016
1 parent 9f7b6e7 commit 77d2408
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/gratipay/confirm.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ Gratipay.confirm = function(message, yes, no) {
var $m = $('.modal');
$m.show();
$('.confirmation-message', $m).html(message);
$('.yes', $m).click(function() { yes(); Gratipay.confirm.close(); });
$('.no', $m).click(function() { no(); Gratipay.confirm.close(); });
$('.yes', $m).off('click').click(function() { yes(); Gratipay.confirm.close(); });
$('.no', $m).off('click').click(function() { no(); Gratipay.confirm.close(); });
};

Gratipay.confirm.close = function() {
Expand Down

0 comments on commit 77d2408

Please sign in to comment.