HomeHelpTrac

Changeset 15566 for trunk/templates


Ignore:
Timestamp:
10/09/11 00:37:28 (8 months ago)
Author:
Alexander Trofimov
Message:

Ticket #2620

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/templates/base/scripts/BxBaseSearchResult.php

    r15338 r15566  
    129129            document.location = s; 
    130130        } 
     131        function on_filter_key_up (e) { 
     132            if (13 == e.keyCode) { 
     133                $('#<?php echo $sCheckboxId; ?>').attr('checked', 'checked'); 
     134                on_filter_apply($('#<?php echo $sCheckboxId; ?>').get(0)); 
     135            } else { 
     136                $('#<?php echo $sCheckboxId; ?>').attr('checked', ''); 
     137            } 
     138        } 
    131139    </script> 
    132140<? 
     
    142150                <td> 
    143151                    <div class="input_wrapper input_wrapper_text"> 
    144                         <input type="text" id="{$sInputId}" value="{$sFilterValue}" class="form_input_text" onkeyup="$('#{$sCheckboxId}').attr('checked', '')" /> 
     152                        <input type="text" id="{$sInputId}" value="{$sFilterValue}" class="form_input_text" onkeyup="on_filter_key_up(event)" /> 
    145153                        <div class="input_close input_close_text">&nbsp;</div> 
    146154                    </div> 
Note: See TracChangeset for help on using the changeset viewer.