2012-12-04 17:12:12 -05:00
|
|
|
var qtip_position = {
|
|
|
|
my: 'top center',
|
|
|
|
at: 'bottom center'
|
|
|
|
};
|
|
|
|
|
|
|
|
$(document).ready(function() {
|
2012-12-19 14:47:01 -08:00
|
|
|
for (var category in annotations) {
|
|
|
|
var categoryAnnotations = annotations[category];
|
|
|
|
for (var annotation in categoryAnnotations) {
|
2013-01-22 12:15:02 -05:00
|
|
|
$('.license-rules ul.license-' + category + ' li.' + annotation).attr('title', categoryAnnotations[annotation]);
|
2012-12-19 14:47:01 -08:00
|
|
|
}
|
2013-01-21 19:45:45 -05:00
|
|
|
}
|
2012-12-19 14:47:01 -08:00
|
|
|
|
2013-01-22 12:15:02 -05:00
|
|
|
$('.license-required li').qtip({
|
2012-12-04 17:12:12 -05:00
|
|
|
content: {
|
|
|
|
text: false,
|
|
|
|
title: {
|
|
|
|
text: 'Required'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
position: qtip_position,
|
|
|
|
style: {
|
|
|
|
classes: 'qtip-shadow qtip-required'
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2013-01-22 12:15:02 -05:00
|
|
|
$('.license-permitted li').qtip({
|
2012-12-04 17:12:12 -05:00
|
|
|
content: {
|
|
|
|
text: false,
|
|
|
|
title: {
|
|
|
|
text: 'Permitted'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
position: qtip_position,
|
|
|
|
style: {
|
|
|
|
classes: 'qtip-shadow qtip-permitted'
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2013-01-22 12:15:02 -05:00
|
|
|
$('.license-forbidden li').qtip({
|
2012-12-04 17:12:12 -05:00
|
|
|
content: {
|
|
|
|
text: false,
|
|
|
|
title: {
|
|
|
|
text: 'Forbidden'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
position: qtip_position,
|
|
|
|
style: {
|
|
|
|
classes: 'qtip-shadow qtip-forbidden'
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|