Disable exiting present mode when in embed mode

pull/1/head
yflory 7 years ago
parent 7582c9cffd
commit 642511dc3b

@ -128,6 +128,7 @@ define([
updateFontSize();
return;
}
if (Slide.isEmbed) { return; }
Common.setTabTitle(); // Remove the slide number from the title
Common.setPresentUrl(false);
change(Slide.index, null);
@ -294,6 +295,10 @@ define([
addEvent();
addSwipeEvents();
$(window).resize(Slide.updateFontSize);
Slide.isEmbed = common.getMetadataMgr().getPrivateData().isEmbed;
if (Slide.isEmbed) {
$modal.find('#cp-app-slide-modal-exit').remove();
}
};
Slide.setTitle = function (titleObj) {

Loading…
Cancel
Save