Skip to content

Commit

Permalink
BUGFIX: Dropdown (select) lists / javascript was not working properly…
Browse files Browse the repository at this point in the history
… when applied to conditional questions within the same page. Fixed by ensuring "java[fieldname]" field is updated when required.

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/trunk/unstable@963 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
jcleeland committed Mar 23, 2004
1 parent 82a6066 commit 695240b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion group.php
Expand Up @@ -757,7 +757,7 @@
if (isset($conditions) && is_array($conditions))
{
if (!isset($endzone)) {$endzone="";}
echo "\t\t\tif (type == 'radio')\n"
echo "\t\t\tif (type == 'radio' || type == 'select-one')\n"
."\t\t\t\t{\n"
."\t\t\t\tvar hiddenformname='java'+name;\n"
."\t\t\t\tdocument.getElementById(hiddenformname).value=value;\n"
Expand Down
2 changes: 1 addition & 1 deletion survey.php
Expand Up @@ -711,7 +711,7 @@
if (isset($conditions) && is_array($conditions))
{
if (!isset($endzone)) {$endzone="";}
echo "\t\t\tif (type == 'radio')\n"
echo "\t\t\tif (type == 'radio' || type == 'select-one')\n"
."\t\t\t\t{\n"
."\t\t\t\tvar hiddenformname='java'+name;\n"
."\t\t\t\tdocument.getElementById(hiddenformname).value=value;\n"
Expand Down

0 comments on commit 695240b

Please sign in to comment.