Refactor canHasFullScreen

HFP-339
improved-embed-and-download^2
Timothy Lim 2016-12-13 10:33:11 +01:00
parent 7d741fa503
commit 52dc1b2a81
1 changed files with 0 additions and 7 deletions

View File

@ -156,13 +156,6 @@ H5P.init = function (target) {
}); });
} }
// Check if we should add and display a fullscreen button for this H5P using
// the deprecated variable for backwards compatability.
if (contentData.fullScreen == 1 && H5P.canHasFullScreen) {
H5P.jQuery('<div class="h5p-content-controls"><div role="button" tabindex="0" class="h5p-enable-fullscreen" title="' + H5P.t('fullscreen') + '"></div></div>').prependTo($container).children().click(function () {
H5P.fullScreen($container, instance);
});
}
// Create action bar // Create action bar
var $actions = H5P.jQuery('<ul class="h5p-actions"></ul>'); var $actions = H5P.jQuery('<ul class="h5p-actions"></ul>');