chargement initial

This commit is contained in:
CAO Thien-An
2017-07-22 11:25:44 +02:00
parent 6aa83a3286
commit 2093b3588f
285 changed files with 101783 additions and 6 deletions

View File

@@ -0,0 +1,29 @@
;
$(document).ready(function () {
$('#afficheJustifModal').on('show.bs.modal', function (event) { // id of the modal with event
var button = $(event.relatedTarget); // Button that triggered the modal
var justif_id = button.data('justifid'); // Extract info from data-* attributes
var justif_titre = button.data('justifname');
// Update the modal's content.
var modal = $(this);
modal.find('.modal-title').text(justif_titre);
modal.find('#imagesrc').attr('src',justif_id);
});
$('#uploadJustifModal').on('show.bs.modal', function (event) { // id of the modal with event
var button = $(event.relatedTarget); // Button that triggered the modal
var justif_id = button.data('justifid'); // Extract info from data-* attributes
var justif_titre = button.data('justifname');
var justif_lib = button.data('justiflib');
var justif_matricule = button.data('justifmatricule');
// Update the modal's content.
var modal = $(this);
modal.find('.modal-title').text('Envoi de ' + justif_titre);
modal.find('.modal-lib').text(justif_lib);
modal.find('#iframesrc').attr('src','/upload/' + justif_id + '/' + justif_matricule);
});
});