Subversion Repositories eFlore/Applications.eflore-consultation

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
547 jpm 1
/**
2
 * Contient les fonction JS communes à l'ensemble des parties d'eflore (popup.php, index.php).
3
 *
4
 */
5
 
6
$(document).ready(function() {
551 jpm 7
	$('body').on('click', 'a.lien-externe, a.lien_externe', ouvrirFenetreExterne);
8
	$('body').on('click', '.mailto', ouvrirPopUpContact);
547 jpm 9
});
10
 
11
function ouvrirFenetreExterne(event) {
12
	event.preventDefault();
13
	window.open($(this).attr('href'));
14
}
15
 
16
function ouvrirPopUpContact(event) {
17
	event.preventDefault();
18
	window.open($(this).attr('href'), "Contact",
19
		'height=500, width=500, top=100, left=100, toolbar=no, menubar=no, location=no, resizable=yes, scrollbars=yes, status=no');
20
}