Disable exiting present mode when in embed mode
This commit is contained in:
@@ -128,6 +128,7 @@ define([
|
|||||||
updateFontSize();
|
updateFontSize();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (Slide.isEmbed) { return; }
|
||||||
Common.setTabTitle(); // Remove the slide number from the title
|
Common.setTabTitle(); // Remove the slide number from the title
|
||||||
Common.setPresentUrl(false);
|
Common.setPresentUrl(false);
|
||||||
change(Slide.index, null);
|
change(Slide.index, null);
|
||||||
@@ -294,6 +295,10 @@ define([
|
|||||||
addEvent();
|
addEvent();
|
||||||
addSwipeEvents();
|
addSwipeEvents();
|
||||||
$(window).resize(Slide.updateFontSize);
|
$(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) {
|
Slide.setTitle = function (titleObj) {
|
||||||
|
|||||||
Reference in New Issue
Block a user