Skip to content

Commit

Permalink
Fixed issue #08056: "Other" text entry does not trigger filter
Browse files Browse the repository at this point in the history
Dev: use .click trigger click on radio. And click a radio check it.
Dev: don't work more, but todo for 2.1 : a external js function for all other radio/checkbox
Dev: in core.js or other.js : depend on js system
  • Loading branch information
Shnoulle committed Aug 23, 2013
1 parent 1dd270b commit 866e66d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/helpers/qanda_helper.php
Expand Up @@ -1824,7 +1824,7 @@ function do_list_radio($ia)
$answer .= ' <input class="radio" type="radio" value="-oth-" name="'.$ia[1].'" id="SOTH'.$ia[1].'"'.$check_ans.' onclick="'.$checkconditionFunction.'(this.value, this.name, this.type)" />
<label for="SOTH'.$ia[1].'" class="answertext">'.$othertext.'</label>
<label for="answer'.$ia[1].'othertext">
<input type="text" class="text '.$kpclass.'" id="answer'.$ia[1].'othertext" name="'.$ia[1].'other" title="'.$clang->gT('Other').'"'.$answer_other.' onkeyup="if($.trim($(this).val())!=\'\'){ $(\'#SOTH'.$ia[1].'\').attr(\'checked\',\'checked\'); }; '.$oth_checkconditionFunction.'(this.value, this.name, this.type);" />
<input type="text" class="text '.$kpclass.'" id="answer'.$ia[1].'othertext" name="'.$ia[1].'other" title="'.$clang->gT('Other').'"'.$answer_other.' onkeyup="if($.trim($(this).val())!=\'\'){ $(\'#SOTH'.$ia[1].'\').click(); }; '.$oth_checkconditionFunction.'(this.value, this.name, this.type);" />
</label>
'.$wrapper['item-end'];

Expand Down

0 comments on commit 866e66d

Please sign in to comment.