mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-22 23:03:00 +08:00
fixes secondary navigation [fixes SCI-338]
This commit is contained in:
parent
e02478b1f9
commit
57c1707e81
1 changed files with 7 additions and 10 deletions
|
@ -178,7 +178,6 @@ function initTutorial() {
|
|||
element: document.getElementById("secondary-menu"),
|
||||
intro: breadcrumbsTutorial,
|
||||
tooltipClass: 'custom next-page-link',
|
||||
disableInteraction: true
|
||||
}
|
||||
],
|
||||
overlayOpacity: '0.1',
|
||||
|
@ -254,19 +253,17 @@ function showTutorial() {
|
|||
}
|
||||
|
||||
function samples_tutorial_helper(){
|
||||
$(document).ready(function(){
|
||||
if( $('div').hasClass('introjs-showElement') ){
|
||||
$('#secondary-menu')
|
||||
.find('a')
|
||||
.css({ 'pointer-events': 'none' });
|
||||
if( $('div').hasClass('introjs-overlay') ){
|
||||
$.each( $('#secondary-menu').find('a'), function(){
|
||||
$(this).css({ 'pointer-events': 'none' });
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function restore_after_tutorial(){
|
||||
$('#secondary-menu')
|
||||
.find('a')
|
||||
.css({ 'pointer-events': 'auto' });
|
||||
$.each( $('#secondary-menu').find('a'), function(){
|
||||
$(this).css({ 'pointer-events': 'auto' });
|
||||
});
|
||||
}
|
||||
// Initialize first-time tutorial
|
||||
initTutorial();
|
||||
|
|
Loading…
Reference in a new issue