fixes IE bug with live ocders

This commit is contained in:
Mark Moser 2016-08-12 15:07:51 -05:00
parent 991925f33d
commit 2ed89e14e4

View File

@ -21,7 +21,7 @@
asked to write code, and it utilizes a JavaScript-enabled asked to write code, and it utilizes a JavaScript-enabled
environment. It looks like JavaScript is not loaded. environment. It looks like JavaScript is not loaded.
<% unless params[:action] == 'summary' %> <% unless params[:action] == 'summary' %>
Please check the box below to acknowledge that you agree to come back at a later time to finish 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. 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 %> <% # 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"); var coders = document.querySelectorAll("[data-id=live-coder-answer] textarea");
coders.forEach(function(textarea){ textarea.disabled = false; }); for(i=0; i<coders.length; i++){ coders[i].disabled = false; }
</script> </script>