diff --git a/app/assets/javascripts/projects/canvas.js b/app/assets/javascripts/projects/canvas.js index a2ff75cd7..4b389c60d 100644 --- a/app/assets/javascripts/projects/canvas.js +++ b/app/assets/javascripts/projects/canvas.js @@ -3445,14 +3445,12 @@ function canvas_tutorial_helper(){ .css({'pointer-events': 'none'}); }); } + $( document ).ajaxComplete(function() { + $('#canvas-new-module') + .css({'pointer-events': 'none'}); + }); }); - $( document ).ajaxComplete(function() { - if( $('div').hasClass('introjs-showElement') ){ - $('#canvas-new-module') - .css({'pointer-events': 'none'}); - } - }); } function restore_after_tutorial(){