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) {
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
@if(ssm.remoteControlEnabled()) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user