mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-11-12 09:20:45 +08:00
disabled experiment dropdown actions
This commit is contained in:
parent
92bb3dda99
commit
8ff645fb89
2 changed files with 21 additions and 1 deletions
|
|
@ -111,6 +111,7 @@
|
||||||
$(this).click(function (){
|
$(this).click(function (){
|
||||||
Cookies.remove('tutorial_data');
|
Cookies.remove('tutorial_data');
|
||||||
Cookies.remove('current_tutorial_step');
|
Cookies.remove('current_tutorial_step');
|
||||||
|
restore_after_tutorial();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
@ -132,8 +133,27 @@
|
||||||
return tutorialProjectId == currentProjectId;
|
return tutorialProjectId == currentProjectId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function project_tutorial_helper(){
|
||||||
|
$(document).ready(function(){
|
||||||
|
if( $('div').hasClass('introjs-overlay')){
|
||||||
|
$.each( $(".dropdown-experiment-actions").find("li"),
|
||||||
|
function(){
|
||||||
|
$(this).css({ 'pointer-events': 'none' });
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function restore_after_tutorial(){
|
||||||
|
$.each( $(".dropdown-experiment-actions").find("li"),
|
||||||
|
function(){
|
||||||
|
$(this).css({ 'pointer-events': 'auto' });
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
initializeTutorial();
|
initializeTutorial();
|
||||||
|
project_tutorial_helper();
|
||||||
});
|
});
|
||||||
|
|
||||||
})();
|
})();
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
data-step="5"
|
data-step="5"
|
||||||
data-position="right"
|
data-position="right"
|
||||||
data-canvas-link="<%= canvas_experiment_url(experiment) %>"
|
data-canvas-link="<%= canvas_experiment_url(experiment) %>"
|
||||||
data-disableInteraction="false"
|
disableInteraction="true"
|
||||||
>
|
>
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<% if can_view_experiment_actions experiment %>
|
<% if can_view_experiment_actions experiment %>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue