srchub-old

srchub-old Mercurial Source Tree


Root/indefero/src/IDF/templates/idf/project/js-autocomplete.html

<script type="text/javascript" src="{media '/idf/js/jquery.bgiframe.min.js'}"></script>
<script type="text/javascript" src="{media '/idf/js/jquery.autocomplete.min.js'}"></script>
<script type="text/javascript" charset="utf-8">
// <!-- {literal}
  $(document).ready(function(){
    var auto_labels = [{/literal}{$auto_labels|safe}{literal}];
    
    for (j=1;j<7;j++) {
      $("#id_label"+j).autocomplete(auto_labels, {
            minChars: 0,
            width: 310,
            matchContains: true,
            max: 50,
            highlightItem: false,
            formatItem: function(row, i, max, term) {
                return row.to.replace(new RegExp("(" + term + ")", "gi"), "<strong>$1</strong>") + "  <span style='font-size: 80%;'>" + row.name + "</span>";
            },
            formatResult: function(row) {
                return row.to;
            }
        });
    }
  });
{/literal} //-->
</script>
Source at commit 128fa1b9447e created 10 years 8 months ago.
By "Nathan Adams ", Adding RSS icons to make it more obvious on how to subscribe to feeds issue 32

Archive Download this file

Branches

Tags

Page rendered in 0.52230s using 11 queries.