454
| <![CDATA[<script type="text/javascript">
//var fecharBusy = false;
$(function () {
//$('#loadMe').on('shown.bs.modal', function (e) {
// if (fecharBusy) {
// $("#loadMe").modal("hide");
// }
//});
//$('#loadMe').on('hidden.bs.modal', function (e) {
// fecharBusy = false;
//});
$(".btn-default").addClass("btn-secondary");
});
function beginBusy() {
$("#loadMe").modal({
backdrop: "static",
keyboard: false,
show: true
});
console.log("chamou beginBusy");
}
function closeBusy() {
fecharBusy = true;
$("#loadMe").modal("hide");
$("#loadMe").modal("dispose");
}
function closeBusy_dataTables() {
var oTable = $('#example').dataTable({
"initComplete": function (settings, json) {
$('div.loading').remove();
},
"bLengthChange": true,
"ordering": false,
"bFilter": false,
"bInfo": false,
order: [[1, 'asc']],
language: { url: $("#urlLangPtbrDataTables").val() },
"dom": '<"top"f>rt<"bottom"<"#refresh">lp><"clear">'
});
if (oTable) {
$("#loadMe").modal("hide");
fecharBusy = true;
}
}
function prepareDialog() {
$("html, body").animate({ scrollTop: 0 }, "slow");
}
function getUrlRelativa(url) {
var urlBase = "/";
if (urlBase != '/')
return urlBase + url;
else
return url;
}
function sleep(milliseconds) {
var start = new Date().getTime();
for (var i = 0; i < 1e7; i++) {
if ((new Date().getTime() - start) > milliseconds) {
break;
}
}
}
function SucessLinkBuscaCidadesContador() {
$("#dialogBusy").dialog('close');
$("#loadMe").modal("hide");
}
function fechaDialog(nomeDialog) {
nomeDialog = "#" + nomeDialog;
$(nomeDialog).dialog("close");
}
$(document).ready(function () {
tabenterIE();
//checkCookie();
validacoes();
});
jQuery(document).ajaxStart(function () {
}).ajaxStop(function () {
closeBusy();
console.log("fechou por ajaxStop");
});
</script>]]>
|