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

@ -49,6 +49,12 @@ function start_datatables() {
var tempo; var tempo;
var tempo_attesa_ricerche = (globals.tempo_attesa_ricerche * 1000); 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({ var table = $this.DataTable({
language: globals.translations.datatables, language: globals.translations.datatables,
autoWidth: true, autoWidth: true,

View File

@ -286,8 +286,6 @@ include $structure->filepath('ajax_righe.php');
</div> </div>
</form> </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'; ?> )} {( "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 --> <!-- EVENTUALE FIRMA GIA' EFFETTUATA -->