Fix loader iniziale per datatables AJAX
This commit is contained in:
parent
22f7fbb695
commit
5a942944eb
|
@ -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();
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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 -->
|
||||
|
|
Loading…
Reference in New Issue