From 642511dc3b435343c9314d43863c0a6863187756 Mon Sep 17 00:00:00 2001 From: yflory Date: Mon, 11 Sep 2017 11:38:40 +0200 Subject: [PATCH] Disable exiting present mode when in embed mode --- www/slide/slide.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/www/slide/slide.js b/www/slide/slide.js index 91181964f..3477a6a32 100644 --- a/www/slide/slide.js +++ b/www/slide/slide.js @@ -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) {