From b22546f53785683f9dbac6640ee343461b7b1f42 Mon Sep 17 00:00:00 2001 From: David Russell Date: Mon, 30 Oct 2017 09:08:03 +0700 Subject: [PATCH] Updated published menus mgmt policy. --- .../gitpitch/views/frags/SlideshowReveal.scala.html | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/app/com/gitpitch/views/frags/SlideshowReveal.scala.html b/app/com/gitpitch/views/frags/SlideshowReveal.scala.html index e7e3d42..1e65a10 100644 --- a/app/com/gitpitch/views/frags/SlideshowReveal.scala.html +++ b/app/com/gitpitch/views/frags/SlideshowReveal.scala.html @@ -103,6 +103,7 @@ }); Reveal.addEventListener('ready', function(evt) { + if (evt.indexh === 0 && evt.indexv === 0) { pushHelpNotification(); } else { @@ -110,6 +111,10 @@ } }); + Reveal.addEventListener('menu-ready', function(evt) { + manageMenuPolicy(); + }); + Reveal.addEventListener('slidechanged', function(evt) { if (evt.indexh === 0 && evt.indexv === 0) { pushHelpNotification(); @@ -163,6 +168,14 @@ Reveal.removeEventListeners(); }; + function manageMenuPolicy() { + @if(ssm.published()) { + if(RevealMenu && RevealMenu.isOpen()) { + RevealMenu.toggle(); + } + } + } + @if(ssm.remoteControlEnabled()) {