Skip to content

Commit

Permalink
Solves issue #5
Browse files Browse the repository at this point in the history
Fixed issue with randomString() function that generated "undefined"
participant codes in IE 7-9.
  • Loading branch information
nolach committed May 9, 2013
1 parent ea9e058 commit 970ec6d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/instruct0.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
<br><br>
<div> Please enter a unique subject identifier; No more than 30 characters, alphanumeric only. </div>
<br>
<input type="submit" value="Submit Subject ID" onclick='console.log("test");loadInstructions("one");'>
<input type="submit" value="Submit Subject ID" onclick='loadInstructions("one");'>
2 changes: 1 addition & 1 deletion core/js/IAT.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ sub = '';
function randomString(length) {
var chars = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
var result = '';
for (var i = length; i > 0; --i) result += chars[Math.round(Math.random() * (chars.length - 1))];
for (var i = length; i > 0; --i) result += chars.charAt(Math.floor(Math.random() * (chars.length - 1)));
return result;
}

Expand Down

0 comments on commit 970ec6d

Please sign in to comment.