use translated text for delete confirmation
This commit is contained in:
parent
b32bcab91f
commit
287c585d3d
|
@ -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>
|
||||||
|
|
|
@ -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');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue