Sha256: 55f1798d27319b1d6fdfa67dbe9ffd792a852621c4802453a28e058c2ba2dfb6
Contents?: true
Size: 1.58 KB
Versions: 18
Compression:
Stored size: 1.58 KB
Contents
{I" class:ETI"ProcessedAsset; FI"logical_path; TI"admin/dropdown.js; FI" pathname; TI"o/Users/brittanymartin/.rvm/gems/ruby-2.1.5/gems/trusty-cms-2.0.16/app/assets/javascripts/admin/dropdown.js; FI"content_type; TI"application/javascript; TI" mtime; Tl+v.ÏVI"length; TiíI"digest; TI"%788b11bbf9bb33c3a09250b4f2f009af; FI"source; TI"í(function(Dropdown, $) { Dropdown.setup = function(link) { var menuToWrap = Dropdown.findMenu(link); if ($(menuToWrap).parent("div").length == 0) { menuToWrap.wrap("<div class='dropdown_wrapper' style='position: absolute; display: none'></div>"); $(link).on('click', function (event) { event.preventDefault(); $(this).toggleClass('selected'); Dropdown.findMenu(this).closest('.dropdown_wrapper').slideToggle(); }) }; } Dropdown.findMenu = function(link) { var match = $(link).attr('href').match(/\#(.+)$/)[1]; return $('#' + match); } }(window.Dropdown = window.Dropdown || {}, jQuery)); $(function () { $('a.dropdown').each(function(){ Dropdown.setup(this); }); }); ; TI"dependency_digest; TI"%ffdae10b7881eb37ce15f5f06df0135e; FI"required_paths; T[I"o/Users/brittanymartin/.rvm/gems/ruby-2.1.5/gems/trusty-cms-2.0.16/app/assets/javascripts/admin/dropdown.js; FI"dependency_paths; T[{I" path; TI"o/Users/brittanymartin/.rvm/gems/ruby-2.1.5/gems/trusty-cms-2.0.16/app/assets/javascripts/admin/dropdown.js; FI" mtime; TI"2016-02-25T11:40:22-05:00; TI"digest; TI"%788b11bbf9bb33c3a09250b4f2f009af; FI" _version; TI"%5dbb392182285b4042e11c847d2199ba; F
Version data entries
18 entries across 9 versions & 1 rubygems