81 lines
1.5 KiB
JavaScript
81 lines
1.5 KiB
JavaScript
$(document).ready(function(){
|
|
//Tooltip date de maj
|
|
if ($('a.datemaj').length){
|
|
$('a.datemaj').qtip({
|
|
content: $('a.datemaj > span').html(),
|
|
style: {
|
|
width: 170,
|
|
classes: "ui-tooltip-cream"
|
|
},
|
|
position: {
|
|
at: "bottom center",
|
|
my: "top center"
|
|
}
|
|
});
|
|
}
|
|
|
|
//Tooltip de domiciliation
|
|
if ($('div.domiciliation').length){
|
|
$('div.domiciliation').qtip({
|
|
show: {
|
|
event: "click"
|
|
},
|
|
hide: {
|
|
event: "unfocus"
|
|
},
|
|
content: $('div.domiciliation span').html(),
|
|
style: {
|
|
width: 200,
|
|
classes: "ui-tooltip-cream"
|
|
},
|
|
position: {
|
|
at: "bottom center",
|
|
my: "top center"
|
|
}
|
|
});
|
|
}
|
|
|
|
//Tooltip AncienSiege
|
|
if ($('a.AncienSiege').length){
|
|
$('a.AncienSiege').qtip({
|
|
show: {
|
|
event: "click"
|
|
},
|
|
hide: {
|
|
event: "unfocus"
|
|
},
|
|
content: $('a.AncienSiege').attr('title'),
|
|
style: {
|
|
width: 350,
|
|
classes: "ui-tooltip-cream"
|
|
},
|
|
position: {
|
|
at: "bottom center",
|
|
my: "top center"
|
|
}
|
|
});
|
|
$('a.AncienSiege').attr('title', "Cliquez pour consulter les informations d'activité.");
|
|
}
|
|
|
|
|
|
$('#groupesarbo').on('click', function(e){
|
|
e.preventDefault();
|
|
var title = $(this).attr('title');
|
|
var href = $(this).attr('href');
|
|
var dialogOpts = {
|
|
bgiframe: true,
|
|
title: title,
|
|
width: 700,
|
|
height: 600,
|
|
modal: true,
|
|
open: function(event, ui) {
|
|
$(this).html('Chargement...');
|
|
$(this).load(href);
|
|
},
|
|
close: function() { $('#dialogarbo').remove(); }
|
|
};
|
|
$('<div id="dialogarbo"></div>').dialog(dialogOpts);
|
|
});
|
|
|
|
|
|
}); |