Sha256: 799d1e08ffe18aa2b39b46de5a92aedb1998ec89b683ef57f110b5cce64b7670

Contents?: true

Size: 558 Bytes

Versions: 27

Compression:

Stored size: 558 Bytes

Contents

<script type="text/javascript">
  $(function() {
    $('<%= dom_element %>').autocomplete({
        minLength: 0,
        source: [<%= encode_results_to_autocomplete( data, field_name ) %>],
        focus: function( event, ui ) {
          $( '<%= dom_element %>' ).val( ui.item.label );
          return false;
        },
        select: function( event, ui ) {
          $( '<%= dom_element %>' ).val( ui.item.label );
          $( '<%= dom_element_id %>' ).val( ui.item.value ).trigger('change');
          return false;
        }
    });
  });

</script>

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
mdd-3.0.20 app/views/template/mdwa/_autocomplete_tag.html.erb
mdd-3.0.19 app/views/template/mdwa/_autocomplete_tag.html.erb
mdd-3.0.18 app/views/template/mdwa/_autocomplete_tag.html.erb
mdd-3.0.17 app/views/template/mdwa/_autocomplete_tag.html.erb
mdd-3.0.16 app/views/template/mdwa/_autocomplete_tag.html.erb
mdd-3.0.15 app/views/template/mdwa/_autocomplete_tag.html.erb
mdd-3.0.14 app/views/template/mdwa/_autocomplete_tag.html.erb
mdd-3.0.13 app/views/template/mdwa/_autocomplete_tag.html.erb
mdd-3.0.10 app/views/template/mdwa/_autocomplete_tag.html.erb
mdd-3.0.9 app/views/template/mdwa/_autocomplete_tag.html.erb
mdd-3.0.8 app/views/template/mdwa/_autocomplete_tag.html.erb
mdd-3.0.7 app/views/template/mdwa/_autocomplete_tag.html.erb
mdd-3.0.6 app/views/template/mdwa/_autocomplete_tag.html.erb
mdd-3.0.4 app/views/template/mdwa/_autocomplete_tag.html.erb
mdd-3.0.3 app/views/template/mdwa/_autocomplete_tag.html.erb
mdd-3.0.2 app/views/template/mdwa/_autocomplete_tag.html.erb
mdd-3.0.1 app/views/template/mdwa/_autocomplete_tag.html.erb
mdd-3.0.0 app/views/template/mdwa/_autocomplete_tag.html.erb
mdd-2.0.3 app/views/template/mdwa/_autocomplete_tag.html.erb
mdd-2.0.2 app/views/template/mdwa/_autocomplete_tag.html.erb