From 7a47ff6bc5965002346211f19b34831360983088 Mon Sep 17 00:00:00 2001 From: zmagod Date: Thu, 25 Aug 2016 15:30:32 +0200 Subject: [PATCH] fixed new task error --- app/assets/javascripts/projects/canvas.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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(){