106,11 → 106,11 |
|
function gererEvenementsWiki() { |
//TODO: ajout automatique d'un lien ouvrant une page d'aide (un popup) au formatage des pages wikini |
$('.editable_sur_clic').live('dblclick',function(event) { |
$('.editable_sur_clic').on('dblclick',function(event) { |
remplacerContenuWikiParFormulaireEdition($(this)); |
}); |
|
$('#formulaire_edition_wiki').live('submit',function(event) { |
$('#formulaire_edition_wiki').on('submit',function(event) { |
event.preventDefault(); |
var valeurs = $(this).serialize(); |
$.post($(this).attr('action'), valeurs, function(data) { |
121,7 → 121,7 |
}); |
}); |
|
$('.bouton_annuler_edition').live('click', function(event) { |
$('.bouton_annuler_edition').on('click', function(event) { |
event.preventDefault(); |
$(objetContenuWiki).addClass('editable_sur_clic').html(htmlWikiOriginal); |
}); |
132,7 → 132,7 |
//+----------------------------------------------------------------------------------------------------------+ |
//Affichage dans une nouvelle fenetre |
function rendreLienAffichableDansNouvelleFenetre(selecteur) { |
$(selecteur).find('a').live('click', function(event) { |
$(selecteur).find('a').on('click', function(event) { |
window.open($(this).attr('href')); |
event.preventDefault(); |
return false; |
205,10 → 205,10 |
} |
|
function gererEvenementsPliage() { |
$('.lien_tout_deplier').live('click', function() { |
$('.lien_tout_deplier').on('click', function() { |
deplierTout(); |
}); |
$('.lien_tout_plier').live('click', function() { |
$('.lien_tout_plier').on('click', function() { |
plierTout(); |
}); |
gestionBiblio(document); |
232,13 → 232,13 |
} |
|
function gererAffichageLegendeEcologie() { |
$('.voir').live('click', function() { |
$('.voir').on('click', function() { |
$(this).siblings('.legende_graphique').show(); |
$(this).siblings('.cacher').show(); |
$(this).hide(); |
}); |
|
$('.cacher').live('click', function() { |
$('.cacher').on('click', function() { |
$(this).siblings('.legende_graphique').hide(); |
$(this).siblings('.voir').show(); |
$(this).hide(); |
257,8 → 257,7 |
|
//Initialisation (uniquement sur la présence de la div bloc-fiche, qui contient la fiche eflore) |
$(document).one('ficheSyntheseChargee', function() { |
// TODO : devrait être .on() à la place de live() |
$('.lien_popup').live('click',function(event) { |
$('.lien_popup').on('click',function(event) { |
event.preventDefault(); |
$.fancybox(this,{ |
autoDimensions:false, |
266,8 → 265,7 |
}); |
}); |
|
// TODO : devrait être .on() à la place de live() |
$('.lien_popup.lien_metadonnees').live('click',function(event) { |
$('.lien_popup.lien_metadonnees').on('click',function(event) { |
event.preventDefault(); |
$.fancybox(this,{ |
autoDimensions:true |
274,8 → 272,8 |
}); |
}); |
|
$('.lien-image-cel').live('click', param_popup_Cel , ouvrirPopUpImg); |
$('.lien-image-coste').live('click', param_popup_Coste , ouvrirPopUpImg); |
$('.lien-image-cel').on('click', param_popup_Cel , ouvrirPopUpImg); |
$('.lien-image-coste').on('click', param_popup_Coste , ouvrirPopUpImg); |
|
gererEvenementsWiki(); |
gererEvenementsPliage(); |
334,13 → 332,13 |
|
// À la fin du chargement de l'onglet Illustrations |
$(document).one('ongletIllustrationsCharge', function() { |
$('a.lien-images-organes.fourni').live('click', afficherOngletOrgane); |
$('a.lien-grande-image-organe').live('click', afficherGrandeImageOrgane); |
$('a.lien-images-organes.fourni').on('click', afficherOngletOrgane); |
$('a.lien-grande-image-organe').on('click', afficherGrandeImageOrgane); |
// pour que la galerie soit ouverte par défaut sur le premier organe non vide |
var premier = $('a.lien-images-organes.fourni').first().data('tag'); |
afficherOngletOrgane(null, premier); |
|
$('a.lien_telechargement_image').live('click',function(e) { |
$('a.lien_telechargement_image').on('click',function(e) { |
if($(e.target).data('oneclicked')!='yes') |
{ |
$(e.target).data('oneclicked','yes'); |
477,7 → 475,7 |
|
// ouvre le popup de galerie lors d'un clic sur l'illustration dans la fiche synthèse |
function gererClicIllustrationsFiche() { |
$('.illustration_cel').live('click', function() { |
$('.illustration_cel').on('click', function() { |
var url_image = $(this).attr('src'); |
var titre = $('.nomenclature').first().text(); |
var url = urlPopup+"?module=popup-galerie&action=fiche&num_nom="+$(this).attr('data-num-nom')+"&titre="+encodeURIComponent(titre)+"&url_image="+encodeURIComponent(url_image)+"&referentiel="+REFERENTIEL; |