initInlineSlideshows: function () {
var $this = this;
- this.fluidbook.slideshow.clear();
+ if (this.fluidbook.slideshow) {
+ this.fluidbook.slideshow.clear();
+ }
$(".inlineslideshow").each(function () {
if ($(this).is(':visible')) {
$this.fluidbook.slideshow.initInlineSlideshow($(this));
var w = ww * 0.6;
var h = hh * 0.8;
var forceHeight = false;
+ var contentHeight = null;
var fullscreen = m.data('fullscreen') === '1';
var nw, nh;
//m.find('.videoContainer').css({paddingLeft: (w - nw * s) / 2, paddingTop: (h - nh * s) / 2});
}
m.find('.videoContainer').css({width: w, height: h});
+ contentHeight = h;
break;
case 'multimedia':
if (forceHeight) {
css.minHeight = css.height = h;
- if (contentHeight === undefined) {
+ if (contentHeight === null) {
ccss.minHeight = ccss.height = h - captionHeight;
// if (m.find('.fonctions').length > 0) {