1,4 → 1,5 |
|
//+----------------------------------------------------------------------------------------------------------+ |
// Onglets et Portlets |
/** |
* Les variables suivantes ont été ajoutée par php |
* |
15,6 → 16,7 |
var modules = Array(); |
var tableauOnglets = Array(); |
var nbOngletsInvisibles = 0; |
var ongletSyntheseCharge = true; |
|
/** Classe Module |
* Définit un module de type portlet |
200,12 → 202,10 |
$('#onglet_synthese').removeClass('ui-state-active'); |
} |
|
function getUrlVars() |
{ |
function getUrlVars() { |
var vars = [], hash; |
var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&'); |
for(var i = 0; i < hashes.length; i++) |
{ |
for (var i = 0; i < hashes.length; i++) { |
hash = hashes[i].split('='); |
vars.push(hash[0]); |
vars[hash[0]] = hash[1]; |
213,9 → 213,7 |
return vars; |
} |
|
var ongletSyntheseCharge = true; |
function selectionnerOngletParDefautOuEnregistre() { |
|
// Si un onglet est précisé dans l'url |
// Récupération de l'adresse de l'onglet sélectionné |
var urlVars = getUrlVars(); |
304,18 → 302,15 |
} |
} |
} |
|
return true; |
} |
|
function obtenirOngletCookiePourPage() { |
|
var urlVars = getUrlVars(); |
var id_cookie = 'onglet_eflore'; |
if(urlVars['num_nom']) { |
id_cookie += '_'+urlVars['num_nom']; |
} |
|
return $.cookie(id_cookie) ? $.cookie(id_cookie) : null; |
} |
|
400,6 → 395,11 |
}); |
} |
|
//+----------------------------------------------------------------------------------------------------------+ |
// Wikini Flora |
var htmlWikiOriginal = ''; |
var objetContenuWiki = null; |
|
function getTemplateFormulaireEditionWiki(page, section, texte) { |
var urlWebServiceWiki = getUrlEditionPourPageEtSection(page, section); |
var formulaire = |
414,9 → 414,6 |
return formulaire; |
} |
|
|
var htmlWikiOriginal = ''; |
var objetContenuWiki = null; |
function getSection() { |
return objetContenuWiki.attr("title"); |
} |
469,6 → 466,8 |
}); |
} |
|
//+----------------------------------------------------------------------------------------------------------+ |
// Plier / déplier |
function plierTout() { |
$('.nom').children('.imagetteMoins').removeClass('imagetteMoins').addClass('imagettePlus'); |
$('.plus').css('display', 'none'); |
499,7 → 498,6 |
$(plus).hide(); |
|
$(this).click(function() { |
|
if (!$(this).children('.plus').is(':visible')) { |
$(this).children('.imagettePlus').removeClass('imagettePlus').addClass('imagetteMoins'); |
$(this).children('.plus').css('display', 'inline'); |
507,7 → 505,6 |
$(this).children('.imagetteMoins').removeClass('imagetteMoins').addClass('imagettePlus'); |
$(this).children('.plus').css('display', 'none'); |
} |
|
}); |
$(this).append($(plus)); |
} |
524,6 → 521,16 |
gestionBiblio(document); |
} |
|
//+----------------------------------------------------------------------------------------------------------+ |
//Images CEL |
function ouvrirPopUpImgCel(event) { |
event.preventDefault(); |
window.open($(this).attr('href'), "Photo "+$(this).children("img").attr("alt"), |
'height=500, width=500, top=100, left=100, toolbar=no, menubar=no, location=no, resizable=yes, scrollbars=yes, status=no'); |
} |
|
//+----------------------------------------------------------------------------------------------------------+ |
// Initialisation |
var fancyboxinitialise = false; |
|
//Initialisation |
565,21 → 572,7 |
window.open($(this).attr('href')); |
}); |
|
/*$('.illustration_taxon').live('click',function(event) { |
if(!fancyboxinitialise) { |
event.preventDefault(); |
$('.illustration_taxon').fancybox({ |
cyclic:true |
}); |
fancyboxinitialise = true; |
$(this).click(); |
} |
});*/ |
$('.lien_image_cel').live('click', function(event) { |
event.preventDefault(); |
window.open($(this).attr('href'), "Photo "+$(this).children("img").attr("alt"), |
'height=500, width=500, top=100, left=100, toolbar=no, menubar=no, location=no, resizable=yes, scrollbars=yes, status=no'); |
}); |
$('.lien-image-cel').live('click', ouvrirPopUpImgCel); |
|
creerMenuOngletsFermes(); |
afficherOngletsPourNiveau(); |
600,11 → 593,9 |
gererEvenementsPliage(); |
}); |
|
|
$(document).ajaxStop(function() { |
if (document.implementation.hasFeature('http://www.w3.org/TR/SVG11/feature#BasicStructure', '1.1') == false) { |
$('.svg').each(function() { |
|
alt = $(this).attr('alt'); |
img = document.createElement('img'); |
img.src = alt; |