app/assets/javascripts/lib/autocomplete.js
/* 
   Extend the autocomplete prototype to return class titles as well as codes 

   We do this so we can Override the display 
   form for the autocomplete
   */
Extend the autocomplete prototype to return class titles as well as codes
We do this so we can Override the display
form for the autocomplete
Extend the autocomplete prototype to return class titles as well as codes We do this so we can Override the display form for the autocomplete
function extend_autocomplete_plugin(that) {
  var proto = $.ui.autocomplete.prototype;
  $.extend( proto, { 
    _renderItem: render_item,
  });
}
function extend_autocomplete_plugin ( that ) { var proto = $ . ui . autocomplete . prototype ; $ . extend ( proto , { _renderItem : render_item , } ) ; }
Extend the autocomplete prototype to return class titles as well as codes
We do this so we can Override the display
form for the autocomplete
Extend the autocomplete prototype to return class titles as well as codes We do this so we can Override the display form for the autocomplete