mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-12 20:43:25 +00:00
Fix lightbox video display
This commit is contained in:
@@ -34,9 +34,10 @@
|
||||
_V_("{{ unique_id }}", {}, function(){
|
||||
var player = this;
|
||||
|
||||
$('#{{ unique_id }}').parent().bind('resize-video-js', function(){
|
||||
player.width($(this).width());
|
||||
player.height($(this).height());
|
||||
$('#{{ unique_id }}').bind('resize-video-js', function(){
|
||||
var parent = $(this).parent();
|
||||
player.width(parent.width());
|
||||
player.height(parent.height());
|
||||
});
|
||||
|
||||
$('#{{ unique_id }}').bind('unload-video-js', function(){
|
||||
|
@@ -11,6 +11,7 @@
|
||||
{% block stylesheet %}
|
||||
<link type="text/css" rel="stylesheet"
|
||||
href="/include/minify/f=include/jslibs/yui2.8/build/reset/reset.css,include/jslibs/jquery.contextmenu.css,include/jslibs/jquery-ui-1.8.17/css/ui-lightness/jquery-ui-1.8.17.custom.css,skins/lightbox/lightbox.css" media="screen"/>
|
||||
<link type="text/css" rel="stylesheet" href="{{registry.get('GV_STATIC_URL')}}/include/jslibs/video-js/video-js.css">
|
||||
{% endblock %}
|
||||
|
||||
{% block icon %}
|
||||
|
@@ -13,7 +13,8 @@
|
||||
{% block stylesheet %}
|
||||
<link type="text/css" rel="stylesheet"
|
||||
href="/include/minify/f=include/jslibs/yui2.8/build/reset/reset.css,include/jslibs/jquery.contextmenu.css,include/jslibs/jquery-ui-1.8.17/css/ui-lightness/jquery-ui-1.8.17.custom.css,skins/lightbox/lightbox.css" media="screen"/>
|
||||
{% endblock %}
|
||||
<link type="text/css" rel="stylesheet" href="{{registry.get('GV_STATIC_URL')}}/include/jslibs/video-js/video-js.css">
|
||||
{% endblock %}
|
||||
|
||||
|
||||
|
||||
|
@@ -498,7 +498,7 @@ function setPreview(){
|
||||
top: t,
|
||||
left: l
|
||||
}).attr('width',w).attr('height',h);
|
||||
$('#PREVIEWIMGCONT .record').trigger('resize-video-js');
|
||||
$('#PREVIEWIMGCONT .videoTips.video-js').trigger('resize-video-js');
|
||||
}
|
||||
|
||||
function classicMode(){
|
||||
|
@@ -363,6 +363,8 @@ function scid_click(event, el)
|
||||
.empty()
|
||||
.append(data.options_html);
|
||||
|
||||
$('.videoTips.video-js', $('.container', container)).trigger('unload-video-js');
|
||||
|
||||
$('.container', container).empty()
|
||||
.append(data.preview+data.selector_html+data.note_html);
|
||||
|
||||
@@ -1017,7 +1019,14 @@ function set_image_position(smooth, image, width, height, container, callback)
|
||||
}
|
||||
if(typeof callback == 'undefined')
|
||||
{
|
||||
callback = function(){};
|
||||
callback = function(){
|
||||
$('.videoTips.video-js', $(image).closest('.container')).trigger('resize-video-js');
|
||||
};
|
||||
} else {
|
||||
callback = function(){
|
||||
$('.videoTips.video-js', $(image).closest('.container')).trigger('resize-video-js');
|
||||
callback();
|
||||
};
|
||||
}
|
||||
|
||||
dimensions.width = width;
|
||||
@@ -1030,7 +1039,7 @@ function set_image_position(smooth, image, width, height, container, callback)
|
||||
else
|
||||
{
|
||||
$(image).css(dimensions);
|
||||
callback;
|
||||
callback();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user