mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-05 02:43:37 +00:00
41 lines
1.2 KiB
JavaScript
41 lines
1.2 KiB
JavaScript
|
$(function () {
|
||
|
$('.plotInfo').each(function () {
|
||
|
match = $(this).attr("id").match(/^plot_info_(\d+)_(\d+)_(\d+)$/);
|
||
|
$(this).qtip({
|
||
|
content: {
|
||
|
text: 'Loading...',
|
||
|
ajax: {
|
||
|
url: $("#sbRoot").val() + '/home/plotDetails',
|
||
|
type: 'GET',
|
||
|
data: {
|
||
|
show: match[1],
|
||
|
episode: match[3],
|
||
|
season: match[2]
|
||
|
},
|
||
|
success: function (data, status) {
|
||
|
this.set('content.text', data);
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
show: {
|
||
|
solo: true
|
||
|
},
|
||
|
position: {
|
||
|
viewport: $(window),
|
||
|
my: 'left center',
|
||
|
adjust: {
|
||
|
y: -10,
|
||
|
x: 2
|
||
|
}
|
||
|
},
|
||
|
style: {
|
||
|
tip: {
|
||
|
corner: true,
|
||
|
method: 'polygon'
|
||
|
},
|
||
|
classes: 'qtip-rounded qtip-shadow ui-tooltip-sb'
|
||
|
}
|
||
|
});
|
||
|
});
|
||
|
});
|