81 lines
1.5 KiB
JavaScript
Raw Normal View History

2011-04-21 13:31:59 +00:00
$(document).ready(function(){
//Tooltip date de maj
if ($('a.datemaj').length){
$('a.datemaj').qtip({
content: $('a.datemaj > span').html(),
2011-08-30 16:04:23 +00:00
style: {
width: 170,
classes: "ui-tooltip-cream"
},
position: {
at: "bottom center",
my: "top center"
}
2011-04-21 13:31:59 +00:00
});
}
2011-09-30 09:51:09 +00:00
//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);
});
2011-04-21 13:31:59 +00:00
});