mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 06:53:15 +00:00
Fix lightbox video display
This commit is contained in:
@@ -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