2014-05-26 06:29:22 +00:00
|
|
|
$(function () {
|
2014-05-26 18:07:10 +00:00
|
|
|
$('.title a').each(function () {
|
2014-05-26 06:29:22 +00:00
|
|
|
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 22:20:37 +00:00
|
|
|
my: 'bottom center',
|
|
|
|
at: 'top center',
|
2014-05-26 06:29:22 +00:00
|
|
|
adjust: {
|
2014-09-30 22:20:37 +00:00
|
|
|
y: 10,
|
2014-05-26 06:29:22 +00:00
|
|
|
x: 0
|
|
|
|
}
|
|
|
|
},
|
|
|
|
style: {
|
|
|
|
tip: {
|
|
|
|
corner: true,
|
|
|
|
method: 'polygon'
|
|
|
|
},
|
2014-05-26 18:07:10 +00:00
|
|
|
classes: 'qtip-rounded qtip-shadow ui-tooltip-sb'
|
2014-05-26 06:29:22 +00:00
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|