Subversion Repositories eFlore/Applications.eflore-consultation

Compare Revisions

Regard whitespace Rev 1388 → Rev 1389

/trunk/presentations/scripts/fiche-synthese.js
365,9 → 365,17
}
 
function gestionBiblio(parent) {
parent.children('.nom').each(function () {
$('.nom').each(function () {
if ($(this).children('.plus').length == 0) {
html = $(this).html();
// La partie biblio commence au premier crochet ouvrant
// ou bien au span de la biblio à exclure
posCrochetGauche = html.indexOf('[');
if(posCrochetGauche < 0) {
posCrochetGauche = html.indexOf('<span class="bib_excl">');
}
if (posCrochetGauche > 0) {
nom = html.substr(0, posCrochetGauche);
biblio = html.substr(posCrochetGauche, html.length);
382,7 → 390,10
$(plus).html(biblio);
$(plus).hide();
$(this).click(function() {
$(this).click(function(e) {
// test pour ne réagir que sur le clic sur le + ou -
// TODO: fusionner ce bout de code en doublon avec synthese.js
if($(e.target).hasClass("imagettePlus") || $(e.target).hasClass("imagetteMoins")) {
if (!$(this).children('.plus').is(':visible')) {
$(this).children('.imagettePlus').removeClass('imagettePlus').addClass('imagetteMoins');
$(this).children('.plus').css('display', 'inline');
390,9 → 401,14
$(this).children('.imagetteMoins').removeClass('imagetteMoins').addClass('imagettePlus');
$(this).children('.plus').css('display', 'none');
}
}
});
$(this).append($(plus));
}
}
});
}