From 2ed89e14e4b1cd71d82fa6e2a50153fbe82651fe Mon Sep 17 00:00:00 2001 From: Mark Moser Date: Fri, 12 Aug 2016 15:07:51 -0500 Subject: [PATCH] fixes IE bug with live ocders --- app/views/quiz/_live_code.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/quiz/_live_code.html.erb b/app/views/quiz/_live_code.html.erb index 1559583..5e76e3a 100644 --- a/app/views/quiz/_live_code.html.erb +++ b/app/views/quiz/_live_code.html.erb @@ -21,7 +21,7 @@ asked to write code, and it utilizes a JavaScript-enabled environment. It looks like JavaScript is not loaded. - + <% unless params[:action] == 'summary' %> Please check the box below to acknowledge that you agree to come back at a later time to finish answering this question before you can submit the test. @@ -65,5 +65,5 @@ <% # we want the coders disabled until JS is confirmed, so form post is easier to validate %> var coders = document.querySelectorAll("[data-id=live-coder-answer] textarea"); - coders.forEach(function(textarea){ textarea.disabled = false; }); + for(i=0; i