mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-23 07:13:57 +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"),
|
element: document.getElementById("secondary-menu"),
|
||||||
intro: breadcrumbsTutorial,
|
intro: breadcrumbsTutorial,
|
||||||
tooltipClass: 'custom next-page-link',
|
tooltipClass: 'custom next-page-link',
|
||||||
disableInteraction: true
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
overlayOpacity: '0.1',
|
overlayOpacity: '0.1',
|
||||||
|
@ -254,19 +253,17 @@ function showTutorial() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function samples_tutorial_helper(){
|
function samples_tutorial_helper(){
|
||||||
$(document).ready(function(){
|
if( $('div').hasClass('introjs-overlay') ){
|
||||||
if( $('div').hasClass('introjs-showElement') ){
|
$.each( $('#secondary-menu').find('a'), function(){
|
||||||
$('#secondary-menu')
|
$(this).css({ 'pointer-events': 'none' });
|
||||||
.find('a')
|
});
|
||||||
.css({ 'pointer-events': 'none' });
|
|
||||||
}
|
}
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function restore_after_tutorial(){
|
function restore_after_tutorial(){
|
||||||
$('#secondary-menu')
|
$.each( $('#secondary-menu').find('a'), function(){
|
||||||
.find('a')
|
$(this).css({ 'pointer-events': 'auto' });
|
||||||
.css({ 'pointer-events': 'auto' });
|
});
|
||||||
}
|
}
|
||||||
// Initialize first-time tutorial
|
// Initialize first-time tutorial
|
||||||
initTutorial();
|
initTutorial();
|
||||||
|
|
Loading…
Reference in a new issue