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