Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed issue #07911: condition on a text-array with matrix filtered fails
Dev: delegate, allways use delegate : allways apply, and less memory leak for browser
Dev: for 2.05 : can be replaced by .on too but dont doing it actually.
  • Loading branch information
Shnoulle committed Jun 27, 2013
1 parent d2bccca commit c624345
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions application/helpers/qanda_helper.php
Expand Up @@ -5156,15 +5156,10 @@ function do_array_multitext($ia)
$addcheckcond = <<< EOD
<script type="text/javascript">
<!--
$(document).ready(function()
{
$('#question{$ia[0]} :input:visible:enabled').each(function(index){
$(this).bind('keyup',function(e) {
checkconditions($(this).attr('value'), $(this).attr('name'), $(this).attr('type'));
return true;
})
$('#question{$ia[0]} .question').delegate('input[type=text]:visible:enabled','blur keyup',function(event){
checkconditions($(this).attr('value'), $(this).attr('name'), $(this).attr('type'));
return true;
})
})
// -->
</script>
EOD;
Expand Down

0 comments on commit c624345

Please sign in to comment.