Subversion Repositories eFlore/Applications.eflore-consultation

Rev

Rev 551 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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