Files
Xes 73154ae174
Behat tests 1.11.x 🐞 / PHP 7.4 Test on ubuntu-latest (push) Canceled after 0s
PHP-CS-Fixer / composer_install (7.4) (push) Canceled after 0s
Chamilo 1.11.40 (ZIP oficial v1.11.40)
Fuente: https://github.com/chamilo/chamilo-lms/releases/download/v1.11.40/chamilo-1.11.40.zip
sha256: 1cf4bf2cc7bae1ef1a1eff643235db1d552f78ddf4b6dd1e2d2dac9868679439
Snapshot independiente (rama huerfana); diffable vs 1.11.38. vendor incluido.
2026-08-06 17:59:45 +02:00

48 lines
1.7 KiB
Smarty

<div class="modal fade" id="send-invitation-modal" tabindex="-1" role="dialog" aria-labelledby="send-invitation-modal-title" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="{{ 'Close' | get_lang }}">
<span aria-hidden="true">&times;</span>
</button>
<h4 class="modal-title" id="send-invitation-modal-title">{{ 'SendInvitation' | get_lang }}</h4>
</div>
<div class="modal-body">
<div id="send-invitation-alert"></div>
{{ invitation_form }}
</div>
<div class="modal-footer">
<button type="button" id="btn-send-invitation" class="btn btn-primary">
<em class="fa fa-send"></em> {{ 'Send' | get_lang }}
</button>
</div>
</div>
</div>
</div>
<script>
$(function() {
var $sendInvitationModal = $('#send-invitation-modal');
var sendToUser = 0;
$('.btn-to-send-invitation').on('click', function(e) {
e.preventDefault();
sendToUser = $(this).data('send-to');
$sendInvitationModal.modal('show');
});
$('#btn-send-invitation').on('click', function(e) {
e.preventDefault();
var $frmSendInvitation = $sendInvitationModal.find('.modal-body form'),
url = '{{ _p.web_ajax }}message.ajax.php?a=send_invitation&user_id=' + sendToUser;
$.get(url, $frmSendInvitation.serialize(), function() {
$frmSendInvitation[0].reset();
window.location.reload();
});
});
});
</script>