extranet/www/js/annonces.js

42 lines
717 B
JavaScript
Raw Normal View History

$(document).ready(function(){
$('.tiptxt').each(function(){
//Si element existe alors on a le texte
var texte = $(this).find('span').html();
2011-08-29 21:14:22 +00:00
if (texte!=''){
$(this).qtip( {
2011-08-29 21:14:22 +00:00
content: {
text: texte
},
solo: true,
2011-08-29 21:14:22 +00:00
style: {
width: 400,
classes: "ui-tooltip-cream"
},
position: {
at: "bottom center",
my: "top center"
}
});
} else {
2011-08-29 21:14:22 +00:00
$(this).qtip({
content: {
text: "Chargement...",
ajax: {
url: $(this).find('a').attr('href')+'&q=ajax'
}
},
solo: true,
2011-08-29 21:14:22 +00:00
style: {
width: 400,
classes: "ui-tooltip-cream"
},
position: {
at: "bottom center",
my: "top center"
}
});
}
});
});