Sha256: 2b50c06bd1c3f11eac43318ac8e74ed4a89c9d65098fd9277fc41895bf072e26
Contents?: true
Size: 743 Bytes
Versions: 4
Compression:
Stored size: 743 Bytes
Contents
var Dropdown = (function($) { 'use strict'; var _manageDropdown = function() { $(document).on('click', '.active-voice', function(event) { event.stopPropagation(); $(this).parent('.dropdown').toggleClass('is-arranger-open'); }); $(document).on('click', '.nav-account-area', function(event) { event.stopPropagation(); $('body').toggleClass('is-dropdown-open'); }); // FIXME - da rivedere il click fuori dall'area dropdown $('html').on('click', function(event) { if($('body').hasClass('is-dropdown-open')) { //$('body').removeClass('is-dropdown-open'); } }); }; var init = function() { _manageDropdown(); }; return { init: init }; })(jQuery);
Version data entries
4 entries across 4 versions & 1 rubygems