mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-12 04:23:19 +00:00
catch VideoJS exceptions
This commit is contained in:
@@ -23,9 +23,14 @@
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
_V_("video_preview_tooltip").destroy();
|
||||
_V_("video_preview_tooltip", {}, function(){
|
||||
|
||||
$(document).ready(function(){
|
||||
try {
|
||||
_V_("video_preview_tooltip", {}, function(){
|
||||
|
||||
});
|
||||
} catch(err) {
|
||||
console.error('An error has been catched during the execution of VideoJS', err);
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
|
@@ -587,7 +587,11 @@
|
||||
}
|
||||
|
||||
$.each($('#tooltip video'), function(i,el){
|
||||
_V_($(el).attr('id')).destroy();
|
||||
try {
|
||||
_V_($(el).attr('id')).destroy();
|
||||
} catch(err) {
|
||||
console.error('An error has been catched during the execution of VideoJS', err);
|
||||
}
|
||||
});
|
||||
|
||||
helper.body.empty();
|
||||
@@ -616,7 +620,11 @@ function unfix_tooltip()
|
||||
$.tooltip.current = null;
|
||||
$('#tooltip').hide();
|
||||
$.each($('#tooltip video'), function(i,el){
|
||||
try {
|
||||
_V_($(el).attr('id')).destroy();
|
||||
} catch(err) {
|
||||
console.error('An error has been catched during the execution of VideoJS', err);
|
||||
}
|
||||
});
|
||||
$('#tooltip .tooltip_closer').hide();
|
||||
hideOverlay('_tooltip');
|
||||
|
Reference in New Issue
Block a user