denniskuczynski/beanstalkd_view

View on GitHub
web/js/initialization.js

Summary

Maintainability
A
0 mins
Test Coverage
(function() {

  $(document).ready(function() {
    //Enable Tooltips
    $("[rel=tooltip]").tooltip();

    if ($('#form_tube_name').length > 0) {
      //Setup Typeahead For Tube Names on Add Job Form
      var tubeNames = $('#form_tube_name').data('tubes');
      $('#form_tube_name').typeahead({source: tubeNames});
    }

    //Update Underscore delimiters <% %> to Handlebar-style {{ }}
    _.templateSettings = {
      interpolate: /\{\{\=(.+?)\}\}/g,
      evaluate: /\{\{(.+?)\}\}/g
    };
  });

})();