/* =require ../vendor/bootstrap/js/dropdown.js */ /* * Dropdown menus. * * This script customizes the Twitter Bootstrap drop-downs. * */ +function ($) { "use strict"; $(document).on('shown.bs.dropdown', '.dropdown', function() { $(document.body).addClass('dropdown-open') var dropdown = $('.dropdown-menu', this), dropdownContainer = $(this).data('dropdown-container') if ($('.dropdown-container', dropdown).length == 0) { var title = $('[data-toggle=dropdown]', this).text(), titleAttr = dropdown.data('dropdown-title'), timer = null if (titleAttr !== undefined) title = titleAttr $('li:first-child', dropdown).addClass('first-item') dropdown.prepend($('
  • ').addClass('dropdown-title').text(title)) var container = $('
  • ').addClass('dropdown-container'), ul = $('