Skip to content

Commit

Permalink
Merge pull request #3246 from Sidsector9/issue-3244
Browse files Browse the repository at this point in the history
 fix(admin-donation): reset email receipt donation button popup should open using modal api #3244
  • Loading branch information
ravinderk committed May 22, 2018
2 parents 2d6dd38 + e16282e commit e0d8983
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion assets/src/js/admin/admin-scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,23 @@ var give_setting_edit = false;

resend_receipt: function () {
$('body').on('click', '#give-resend-receipt', function (e) {
return confirm(give_vars.resend_receipt);
let that = this;

e.preventDefault();

new GiveConfirmModal(
{
modalContent: {
title: give_vars.confirm_action,
desc: give_vars.resend_receipt,
},
successConfirm: function () {
window.location.assign( $( that ).attr( 'href' ) );

return;
}
}
).render();
});
},

Expand Down

0 comments on commit e0d8983

Please sign in to comment.