Non puoi selezionare più di 25 argomenti
Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
105 righe
4.2 KiB
105 righe
4.2 KiB
<?php ?> |
|
<script src="<?= BASE_HTTP ?>assets/js/jquery/jquery-min.js" type="text/javascript"></script> |
|
<script src="<?= BASE_HTTP ?>assets/js/jquery/jquery-ui.min.js" type="text/javascript"></script> |
|
<script src="<?= BASE_HTTP ?>assets/js/risorselocali/jquery.dataTables.min.js" type="text/javascript"></script> |
|
<script src="<?= BASE_HTTP ?>assets/js/risorselocali/dataTables.bootstrap4.min.js" type="text/javascript"></script> |
|
<script src="<?= BASE_HTTP ?>assets/js/risorselocali/popper.min.js?t=1" type="text/javascript"></script> |
|
<? if (UNICO_JS_CSS) { ?> |
|
<script src="<?= BASE_HTTP ?>assets/js/SiparsApi.js" type="text/javascript"></script> |
|
<? } ?> |
|
|
|
|
|
<script type="text/javascript"> |
|
|
|
<? if (!UNICO_JS_CSS) { ?> |
|
function require(script) { |
|
$.ajax({ |
|
url: script, |
|
dataType: "script", |
|
async: false, // <-- This is the key |
|
cache: true, |
|
success: function () { |
|
// all good... |
|
}, |
|
error: function () { |
|
throw new Error("Could not load script " + script); |
|
} |
|
}); |
|
} |
|
require("<?= BASE_HTTP ?>assets/dist/js/bootstrap.min.js"); |
|
require("<?= BASE_HTTP ?>js/sweetalert2.min.js"); |
|
require("<?= BASE_HTTP ?>js/utils.js"); |
|
require("<?= BASE_HTTP ?>js/codicefiscale.js"); |
|
require("<?= BASE_HTTP ?>js/jquery.redirect.js"); |
|
// DATA TABLES |
|
require("<?= BASE_HTTP ?>assets/js/DataTables/Responsive-2.2.3/js/dataTables.responsive.min.js"); |
|
require("<?= BASE_HTTP ?>assets/js/jquery/jquery.mask.min.js"); |
|
// DATA TABLES |
|
// SELECT 2 |
|
require("<?= BASE_HTTP ?>assets/js/select2/dist/js/select2.full.min.js"); |
|
require("<?= BASE_HTTP ?>assets/js/select2/dist/js/i18n/it.js"); |
|
require("<?= BASE_HTTP ?>assets/js/jQueryMaskPlugin/jquery.mask.js"); |
|
require("<?= BASE_HTTP ?>js/jquery.alphanum.js"); |
|
<? } ?> |
|
|
|
|
|
$(document).ready(function () { |
|
|
|
$(function () { |
|
$('[data-toggle="tooltip"]').tooltip(); |
|
}); |
|
|
|
if (navigator.userAgent.indexOf("MSIE") != -1 || (!!document.documentMode == true)) { |
|
alert("Attenzione, questo portale è ottimizzato per l'utilizzo con i soli browser Google Chrome, Mozilla Firefox e Microsoft Edge."); |
|
} |
|
|
|
}); |
|
|
|
var ROOT_URL = window.location.protocol + "//" + window.location.host; |
|
$.extend($.fn.dataTable.defaults, { |
|
"language": { |
|
"url": BASE_HTTP + "/assets/js/DataTables/plug-ins/i18n/it_it.json" |
|
}, |
|
"drawCallback": function (settings) { |
|
|
|
$('.tooltipped').tooltip(); |
|
}, |
|
"fnPreDrawCallback": function (dt) { |
|
$('.dataTables_processing').attr('class', 'customloadingDt'); |
|
}, |
|
"dom": 'lBfrtip', |
|
"aLengthMenu": [[10, 20, 40, 80, 160, 999999], ["10", "20", "40", "80", "160", "All"]], |
|
"oClasses": { |
|
"sLengthSelect": 'selectForPages' |
|
}, |
|
//"responsive": true, |
|
responsive: { |
|
details: { |
|
display: $.fn.dataTable.Responsive.display.childRowImmediate, |
|
type: '' |
|
} |
|
}, |
|
buttons: [] |
|
}); |
|
|
|
(function () { |
|
'use strict'; |
|
window.addEventListener('load', function () { |
|
// Fetch all the forms we want to apply custom Bootstrap validation styles to |
|
var forms = document.getElementsByClassName('needs-validation'); |
|
// Loop over them and prevent submission |
|
var validation = Array.prototype.filter.call(forms, function (form) { |
|
form.addEventListener('submit', function (event) { |
|
if (form.checkValidity() === false) { |
|
event.preventDefault(); |
|
event.stopPropagation(); |
|
functionSwall('error', "E' necessario compilare tutti i dati obbligatori. Controllare tutti i campi contrassegnati con l'asterisco e cerchiati in rosso.", ""); |
|
} |
|
form.classList.add('was-validated'); |
|
}, false); |
|
}); |
|
}, false); |
|
})(); |
|
|
|
</script> |
|
|
|
|