File: /var/www/vhost/disk-apps/dev-telemedicina.teky.com.co/public/js/logs/main.js
$(document).ready(function() {
$("#example2").DataTable({
paging: true,
lengthChange: true,
searching: true,
ordering: true,
info: true,
autoWidth: true,
language: {
url: Lang.get('messages.datatable.url_language')
},
buttons: ["copyHtml5", "excelHtml5", "csvHtml5", "pdfHtml5"]
});
try {
urlLocal = window.location.href.split("/")[3] + "/" + window.location.href.split("/")[4];
} catch (err) {}
if (urlLocal == "logs/error") {
$("#checkSoloErrores").attr("checked", true);
}
if (urlLocal == "logs/sync") {
$("#checkSoloSincronizacion").attr("checked", true);
}
});
$("#checkSoloErrores").change(function() {
$("#checkSoloSincronizacion").attr("checked", false);
$(location).attr("href", url + "/logs/error");
});
$("#checkSoloSincronizacion").change(function() {
$("#checkSoloErrores").attr("checked", false);
$(location).attr("href", url + "/logs/sync");
});