1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
| $('.membre_span').qtip({
content: {
text: function(event, api) {
$.ajax({
url: 'http://' + SITE + '/users.php?id=' + link_decode($(this).attr('data'))
})
.then(function(content) {
api.set('content.text', content);
}, function(xhr, status, error) {
api.set('content.text', status + ': ' + error);
});
return 'Chargement...'
}
},
style: {
classes: 'qtip-bootstrap',
width: 350,
height: 350
},
show: {
solo: true
},
hide: {
fixed: true,
delay: 300
},
position: {
my: 'left top',
at: 'top right'
}
}); |
Partager