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:
@@ -74,6 +74,7 @@ function templatereplace($line, $replacements=array(), $anonymized=false, $quest
|
|||||||
{
|
{
|
||||||
$(".text").focus();
|
$(".text").focus();
|
||||||
$(".textarea").focus();
|
$(".textarea").focus();
|
||||||
|
document[\'onkeypress\'] = checkEnter;
|
||||||
});
|
});
|
||||||
</script>';
|
</script>';
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ $(document).ready(function()
|
|||||||
if (typeof checkconditions!='undefined') checkconditions();
|
if (typeof checkconditions!='undefined') checkconditions();
|
||||||
if (typeof template_onload!='undefined') template_onload();
|
if (typeof template_onload!='undefined') template_onload();
|
||||||
prepareCellAdapters();
|
prepareCellAdapters();
|
||||||
document['onkeypress'] = checkEnter;
|
// document['onkeypress'] = checkEnter;
|
||||||
if (typeof(focus_element) != 'undefined')
|
if (typeof(focus_element) != 'undefined')
|
||||||
{
|
{
|
||||||
$(focus_element).focus();
|
$(focus_element).focus();
|
||||||
|
|||||||
Reference in New Issue
Block a user