Subversion Repositories eFlore/Applications.eflore-consultation

Compare Revisions

Ignore whitespace Rev 1256 → Rev 1257

/trunk/presentations/styles/eflore.css
830,6 → 830,15
#dialog label { margin-top: 0.5em; }
#dialog input, #dialog textarea { width: 95%; }
 
.conteneur_repartition_observations {
width:620px;
height:620px;
}
 
.chargement_repartition {
background: url("../images/chargement.gif") no-repeat scroll 50% 50%, url("../images/fond_carte_metropole.png") no-repeat scroll 8px 8px rgba(0, 0, 0, 0);
}
 
.bloc_legende_repartition {
float:left;
margin-right:5px;
/trunk/presentations/scripts/fiche-synthese.js
486,6 → 486,22
gererInteractionsPermaliens();
});
 
function ajouterEvenement(elementHtml, nomEvenement, functionCallBack) {
if(elementHtml.attachEvent) // Internet Explorer
elementHtml.attachEvent("on" + nomEvenement, function() {functionCallBack.call(elementHtml);});
else if(elementHtml.addEventListener) // Firefox & autres
elementHtml.addEventListener(nomEvenement, functionCallBack, false);
}
 
$(document).one('ongletRepartitionCharge', function() {
$(".conteneur_repartition_observations").addClass("chargement_repartition");
// utilisation d'une fonction native car jQuery refuse d'ajouter un évènement load
// sur autre chose qu'une image
ajouterEvenement(document.getElementById("repartition_observations"), "load", function() {
$(".conteneur_repartition_observations").removeClass("chargement_repartition");
});
});
 
$(document).one('ongletSyntheseCharge', function() {
lierModulesEtOnglets();
/trunk/modules/fiche/squelettes/fiche_repartition.tpl.html
29,8 → 29,10
<? if (isset($moissonnage)) : ?>
<div id="moissonnage">
<h2>Observations</h2>
<object id="repartition_observations" type="text/html" data="<?=$moissonnage['mapUrl']?>" class="svg" alt="<?=$moissonnage['mapUrl']?>" style="width:620px; height:620px; overflow:none;">
</object>
<div class="conteneur_repartition_observations" >
<object id="repartition_observations" type="text/html" data="<?=$moissonnage['mapUrl']?>" class="svg" alt="<?=$moissonnage['mapUrl']?>" style="width:620px; height:620px; overflow:none;">
</object>
</div>
<div id="legende" style="padding:15px;margin-top:-25px;">
<? foreach ($moissonnage['legende'] as $id => $details) :?>
<div style="clear:left;">
79,4 → 81,8
</a>
</div>
</div>
<script type="text/javascript">
$.event.trigger('ongletRepartitionCharge');
</script>
</div>