Commit cf377db5 by pupi1985

Make selects react on changing events rather than click events

parent 5f9c2b85
......@@ -1638,7 +1638,7 @@ function qa_set_display_rules(&$qa_content, $effects)
// set default state of options
$loadscript = array(
"for (var i = 0; i < {$optVar}.length; i++) {",
"\t$('#'+{$optVar}[i]).click(function() { " . $function . "(false); });",
"\t$('#'+{$optVar}[i]).change(function() { " . $function . "(false); });",
"}",
"{$function}(true);",
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment