Révision 2c6641c8
Ajouté par Serghei Mihai il y a plus de 9 ans
calebasse/static/js/calebasse.dossiers.js | ||
---|---|---|
375 | 375 |
window.location.href = window.location.pathname; |
376 | 376 |
return false; |
377 | 377 |
}); |
378 |
$('#print-button').click(function() { window.print(); }); |
|
378 |
$('#print-button').click(function() { |
|
379 |
var button = $(this); |
|
380 |
var title = button.html(); |
|
381 |
button.html('Préparation de l\'impression en cours'); |
|
382 |
button.attr({disabled: 'disabled'}); |
|
383 |
button.toggleClass('icon-wip'); |
|
384 |
$('.pagination').next().remove(); |
|
385 |
$.get(window.location + '&all', function(data) { |
|
386 |
button.toggleClass('icon-wip'); |
|
387 |
button.removeAttr('disabled'); |
|
388 |
button.html(title); |
|
389 |
$('.content').append(data); |
|
390 |
window.print(); |
|
391 |
}); |
|
392 |
}); |
|
379 | 393 |
|
380 | 394 |
$('#new-patientrecord').click(function() { |
381 | 395 |
generic_ajaxform_dialog('new', 'Nouveau dossier', |
Formats disponibles : Unified diff
dossiers: print all quotations
font-awesome styles added for icons effects
Closes #5012