Subversion Repositories eFlore/Applications.eflore-consultation

Rev

Rev 950 | Rev 971 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 950 Rev 966
Line 408... Line 408...
408
 
408
 
409
//+----------------------------------------------------------------------------------------------------------+
409
//+----------------------------------------------------------------------------------------------------------+
410
// ancienne fonction CEL  
410
// ancienne fonction CEL  
411
function ouvrirPopUpImgCel(event) {
411
function ouvrirPopUpImgCel(event) {
412
	event.preventDefault();
412
	event.preventDefault();
413
	window.open($(this).attr('href'), "Photo "+$(this).children("img").attr("alt"), 
413
	window.open($(this).attr('href'), "Photo "+$(this).children("img").attr("title"), 
414
		'height= 750, width= 630, top=100, left=100, toolbar=no, menubar=no, location=no, resizable=yes, scrollbars=yes, status=no');
414
		'height= 750, width= 630, top=100, left=100, toolbar=no, menubar=no, location=no, resizable=yes, scrollbars=yes, status=no');
Line 415... Line 415...
415
}
415
}
416
 
416
 
417
 
417
 
418
//Pop Up images
418
//Pop Up images
419
function ouvrirPopUpImg(event) {
419
function ouvrirPopUpImg(event) {
420
	event.preventDefault();
420
	event.preventDefault();
421
	window.open($(this).attr('href'),"Photo "+$(this).children("img").attr("alt"),
421
	window.open($(this).attr('href'),"Photo_"+$(this).children("img").attr("title"),
422
			'height='+ event.data.h +', width='+ event.data.w +', top='+ event.data.t +', left='+ event.data.l 
422
			'"'+'height='+event.data.h+',width='+event.data.w+',top='+event.data.t+',left='+event.data.l 
423
			+', toolbar='+ event.data.toolbar +', menubar='+ event.data.menubar +', location='
423
			+',toolbar='+event.data.toolbar+',menubar='+event.data.menubar +',location='
Line 424... Line 424...
424
			+ event.data.location +', resizable='+ event.data.resizable +', scrollbars='+ event.data.scrollbars 
424
			+event.data.location+',resizable='+event.data.resizable+',scrollbars='+event.data.scrollbars 
425
			+', status='+ event.data.status  );
425
			+',status='+event.data.status+'"');
426
}
426
}
Line 488... Line 488...
488
	
488
	
489
	$('a.lien_retour_synthese').click(function(event) {
489
	$('a.lien_retour_synthese').click(function(event) {
490
		$('#onglet_synthese a').click();
490
		$('#onglet_synthese a').click();
491
		event.preventDefault();
491
		event.preventDefault();
-
 
492
	});
-
 
493
	
-
 
494
	$(window).resize(function() {
-
 
495
		redimensionnerOnglets();
-
 
496
	});
492
	});
497
	redimensionnerOnglets();
Line -... Line 498...
-
 
498
});
-
 
499
 
-
 
500
function redimensionnerOnglets() {
-
 
501
	
-
 
502
	var largeurTotale = $('#zone_onglets').width();
-
 
503
	var largeurOnglets = 0;
-
 
504
	var largeurDernierOnglet = 0;
-
 
505
	$('#onglets li').each(function() {
-
 
506
		largeurDernierOnglet = $(this).outerWidth();
-
 
507
		largeurOnglets += $(this).outerWidth();
-
 
508
	});
-
 
509
	
-
 
510
	var espaceRestant = largeurTotale - largeurOnglets;
-
 
511
	if(espaceRestant < largeurDernierOnglet) {
-
 
512
		var pxALiberer = (largeurDernierOnglet - espaceRestant)/ $('#onglets li').size();
-
 
513
		$('#onglets li').each(function() {
-
 
514
			$(this).width($(this).width() - (pxALiberer - 4));
-
 
515
			$(this).css("font-size", "0.9em");
-
 
516
		});
-
 
517
	} else {
-
 
518
		$('#onglets li').each(function() {
-
 
519
			$(this).css("width", "auto");
-
 
520
			$(this).css("font-size", "1em");
-
 
521
		});
-
 
522
	}
493
});
523
}
494
 
524
 
495
function gererClicIllustrationsFiche() {
525
function gererClicIllustrationsFiche() {
496
	$('.illustration_cel').live('click', function() {
526
	$('.illustration_cel').live('click', function() {
497
		var url_image = $(this).attr('src');
527
		var url_image = $(this).attr('src');