2
0
mirror of https://github.com/ACSPRI/queXS synced 2024-04-02 12:12:16 +00:00

Fixed bug: When self completing group by group or all-in-one, numeric key presses may change previous answers

This commit is contained in:
Adam Zammit
2015-12-18 09:24:51 +11:00
parent d3f1fe44c3
commit bb61a1e3b6
2 changed files with 2 additions and 1 deletions

View File

@@ -74,6 +74,7 @@ function templatereplace($line, $replacements=array(), $anonymized=false, $quest
{
$(".text").focus();
$(".textarea").focus();
document[\'onkeypress\'] = checkEnter;
});
</script>';
}

View File

@@ -6,7 +6,7 @@ $(document).ready(function()
if (typeof checkconditions!='undefined') checkconditions();
if (typeof template_onload!='undefined') template_onload();
prepareCellAdapters();
document['onkeypress'] = checkEnter;
// document['onkeypress'] = checkEnter;
if (typeof(focus_element) != 'undefined')
{
$(focus_element).focus();