diff --git a/sapl/templates/painel/index.html b/sapl/templates/painel/index.html index 523fa2423..2283c9c82 100644 --- a/sapl/templates/painel/index.html +++ b/sapl/templates/painel/index.html @@ -284,7 +284,7 @@ $('#tema_solene_div').show(); } - if (data["brasao"] != null) + if (data["brasao"] != null && $("#logo-painel").attr("src") !== data["brasao"]) $("#logo-painel").attr("src", data["brasao"]); var presentes = $("#parlamentares"); @@ -487,9 +487,9 @@ error: function(err) { console.error(err); }, + complete: function() { setTimeout(poll, 500); }, dataType: "json", - complete: setTimeout(function() {poll()}, 500), - timeout: 20000 // TODO: decrease + timeout: 20000 }) })(); });