mirror of
https://github.com/gitpitch/gitpitch.git
synced 2024-04-18 07:30:55 +08:00
Updated published menus mgmt policy.
This commit is contained in:
parent
d304d41d94
commit
b22546f537
|
@ -103,6 +103,7 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
Reveal.addEventListener('ready', function(evt) {
|
Reveal.addEventListener('ready', function(evt) {
|
||||||
|
|
||||||
if (evt.indexh === 0 && evt.indexv === 0) {
|
if (evt.indexh === 0 && evt.indexv === 0) {
|
||||||
pushHelpNotification();
|
pushHelpNotification();
|
||||||
} else {
|
} else {
|
||||||
|
@ -110,6 +111,10 @@
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Reveal.addEventListener('menu-ready', function(evt) {
|
||||||
|
manageMenuPolicy();
|
||||||
|
});
|
||||||
|
|
||||||
Reveal.addEventListener('slidechanged', function(evt) {
|
Reveal.addEventListener('slidechanged', function(evt) {
|
||||||
if (evt.indexh === 0 && evt.indexv === 0) {
|
if (evt.indexh === 0 && evt.indexv === 0) {
|
||||||
pushHelpNotification();
|
pushHelpNotification();
|
||||||
|
@ -163,6 +168,14 @@
|
||||||
Reveal.removeEventListeners();
|
Reveal.removeEventListeners();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
function manageMenuPolicy() {
|
||||||
|
@if(ssm.published()) {
|
||||||
|
if(RevealMenu && RevealMenu.isOpen()) {
|
||||||
|
RevealMenu.toggle();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@if(ssm.remoteControlEnabled()) {
|
@if(ssm.remoteControlEnabled()) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user