Subversion Repositories eFlore/Applications.eflore-consultation

Compare Revisions

Ignore whitespace Rev 546 → Rev 547

/trunk/presentations/scripts/eflore.js
New file
0,0 → 1,20
/**
* Contient les fonction JS communes à l'ensemble des parties d'eflore (popup.php, index.php).
*
*/
 
$(document).ready(function() {
$('a.lien-externe, a.lien_externe').on('click', ouvrirFenetreExterne);
$('.mailto').on('click', ouvrirPopUpContact);
});
 
function ouvrirFenetreExterne(event) {
event.preventDefault();
window.open($(this).attr('href'));
}
 
function ouvrirPopUpContact(event) {
event.preventDefault();
window.open($(this).attr('href'), "Contact",
'height=500, width=500, top=100, left=100, toolbar=no, menubar=no, location=no, resizable=yes, scrollbars=yes, status=no');
}