Skip to content

Commit

Permalink
update reinstate modal confirm btn class (#4930)
Browse files Browse the repository at this point in the history
* update reinstate modal confirm btn class

* rubocop fix
  • Loading branch information
RyanEddyIC authored and bbodine1 committed Jan 24, 2025
1 parent f998d0d commit 82409d7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions app/assets/javascripts/inline_replacements.js
Original file line number Diff line number Diff line change
Expand Up @@ -367,11 +367,10 @@ function confirmReinstate(event){


$(document).on('ajax:success', function() {

$('.btn-confirmation').on('click', function(e) {
$('.reinstate-modal-confirm-btn').on('click', function(e) {
confirmReinstate(e);
return false;
});

$('#reinstate-submit').on('click', reInstateModal);
})
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
</div>
<div class="modal-footer">
<button type="button" class="btn btn-error outline" data-dismiss="modal"><%= l10n('close') %></button>
<button type="button" class="btn btn-primary btn-confirmation"><%= l10n('confirm_selection') %></button>
<button type="button" class="btn btn-primary btn-confirmation reinstate-modal-confirm-btn"><%= l10n('confirm_selection') %></button>
</div>
</div>
</div>
Expand Down

0 comments on commit 82409d7

Please sign in to comment.