1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-11-14 05:15:12 -05:00
SickRage/gui/slick/js/sceneExceptionsTooltip.js

40 lines
1.1 KiB
JavaScript
Raw Normal View History

$(function () {
$('.title a').each(function () {
match = $(this).parent().attr("id").match(/^scene_exception_(\d+)$/);
$(this).qtip({
content: {
text: 'Loading...',
ajax: {
url: $("#sbRoot").val() + '/home/sceneExceptions',
type: 'GET',
data: {
show: match[1]
},
success: function (data, status) {
this.set('content.text', data);
}
}
},
show: {
solo: true
},
position: {
viewport: $(window),
2014-09-30 18:20:37 -04:00
my: 'bottom center',
at: 'top center',
adjust: {
2014-09-30 18:20:37 -04:00
y: 10,
x: 0
}
},
style: {
tip: {
corner: true,
method: 'polygon'
},
classes: 'qtip-rounded qtip-shadow ui-tooltip-sb'
}
});
});
});