hack pour un bug de google maps
This commit is contained in:
parent
8dd35a6207
commit
bb95d202c2
1 changed files with 7 additions and 0 deletions
|
@ -134,6 +134,7 @@
|
|||
candi.append($("<input>", {id:"addcandidat", type:"button", class:"btn_like", value:"Ou bien créer une nouvelle institution"})
|
||||
.click(function(){addNewPlace(predata)}) );
|
||||
}
|
||||
hackForGMaps();
|
||||
}
|
||||
|
||||
function clearCandidats () {
|
||||
|
@ -160,6 +161,12 @@
|
|||
function showAddLieu(show) {
|
||||
document.getElementById("addlieu_win").style.display=show?"table":"none";
|
||||
}
|
||||
|
||||
function hackForGMaps() { // le widget google maps ne s'affiche pas correctement. un event resize le fait s'afficher normalement, don't ask why
|
||||
var v = document.createEvent("UIEvent");
|
||||
v.initUIEvent('resize', true, false, window, 0);
|
||||
window.dispatchEvent(v);
|
||||
}
|
||||
</script>
|
||||
{% endblock %}
|
||||
|
||||
|
|
Loading…
Reference in a new issue