disabled experiment dropdown actions

This commit is contained in:
zmagod 2016-08-25 15:16:51 +02:00
parent 92bb3dda99
commit 8ff645fb89
2 changed files with 21 additions and 1 deletions

View file

@ -111,6 +111,7 @@
$(this).click(function (){
Cookies.remove('tutorial_data');
Cookies.remove('current_tutorial_step');
restore_after_tutorial();
});
});
}
@ -132,8 +133,27 @@
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(){
initializeTutorial();
project_tutorial_helper();
});
})();

View file

@ -5,7 +5,7 @@
data-step="5"
data-position="right"
data-canvas-link="<%= canvas_experiment_url(experiment) %>"
data-disableInteraction="false"
disableInteraction="true"
>
<div class="panel-heading">
<% if can_view_experiment_actions experiment %>