Fix loader iniziale per datatables AJAX

This commit is contained in:
Thomas Zilio 2019-08-03 09:17:38 +02:00
parent 22f7fbb695
commit 5a942944eb
3 changed files with 7 additions and 3 deletions

View File

@ -1,5 +1,5 @@
$(document).ready(function () {
// Pulsanti di Datatables
// Pulsanti di Datatables
$(".btn-csv").click(function (e) {
var table = $(document).find("#" + $(this).closest("[data-target]").data("target")).DataTable();

View File

@ -49,6 +49,12 @@ function start_datatables() {
var tempo;
var tempo_attesa_ricerche = (globals.tempo_attesa_ricerche * 1000);
$this.on('preInit.dt', function (ev, settings) {
if ($(ev.target).hasClass("main-records")) {
$('#mini-loader').show();
}
});
var table = $this.DataTable({
language: globals.translations.datatables,
autoWidth: true,

View File

@ -286,8 +286,6 @@ include $structure->filepath('ajax_righe.php');
</div>
</form>
{( "name": "checklists", "id_module": "$id_module$", "id_record": "$id_record$" )}
{( "name": "filelist_and_upload", "id_module": "$id_module$", "id_record": "$id_record$", <?php echo ($record['flag_completato']) ? '"readonly": 1' : '"readonly": 0'; ?> )}
<!-- EVENTUALE FIRMA GIA' EFFETTUATA -->