use translated text for delete confirmation

This commit is contained in:
Andrew Bauer 2020-08-18 08:26:45 -05:00
parent b32bcab91f
commit 287c585d3d
2 changed files with 1 additions and 5 deletions

View File

@ -315,7 +315,7 @@ while ( $event_row = dbFetchNext($results) ) {
</button> </button>
</div> </div>
<div class="modal-body"> <div class="modal-body">
<p>Populaed by Javascript</p> <p><?php echo translate('ConfirmDeleteEvents') ?></p>
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<button id="delCancelBtn" type="button" class="btn btn-secondary" data-dismiss="modal"><?php echo translate('Cancel') ?></button> <button id="delCancelBtn" type="button" class="btn btn-secondary" data-dismiss="modal"><?php echo translate('Cancel') ?></button>

View File

@ -163,11 +163,7 @@ function initPage() {
return; return;
} }
var modal = $j('#deleteConfirm');
var selections = getIdSelections();
evt.preventDefault(); evt.preventDefault();
modal.find('.modal-body p').text('You are about to delete '+selections.length+' events. Are you sure?');
$j('#deleteConfirm').modal('show'); $j('#deleteConfirm').modal('show');
}); });