Sha256: 22cf39b22a1a7af1440af10748134da419da45ae45bd57b2885104dc4d9d2116

Contents?: true

Size: 1.58 KB

Versions: 8

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.20/app/assets/javascripts/admin/dropdown.js;FI"content_type;TI"application/javascript;TI"
mtime;Tl+
€WI"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.20/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.20/app/assets/javascripts/admin/dropdown.js;FI"
mtime;TI"2016-04-04T10:54:05-04:00;TI"digest;TI"%788b11bbf9bb33c3a09250b4f2f009af;FI"
_version;TI"%5dbb392182285b4042e11c847d2199ba;F

Version data entries

8 entries across 4 versions & 1 rubygems

Version Path
trusty-clipped-extension-3.0.0 spec/dummy/tmp/cache/assets/test/sprockets/209b35b7fcbb8225bf98037dcbec1bbd
trusty-clipped-extension-3.0.0 spec/dummy/tmp/cache/assets/test/sprockets/f40cfb94ac60b405447b97bfd2f0b154
trusty-clipped-extension-2.0.15 spec/dummy/tmp/cache/assets/test/sprockets/209b35b7fcbb8225bf98037dcbec1bbd
trusty-clipped-extension-2.0.15 spec/dummy/tmp/cache/assets/test/sprockets/f40cfb94ac60b405447b97bfd2f0b154
trusty-clipped-extension-2.0.14 spec/dummy/tmp/cache/assets/test/sprockets/209b35b7fcbb8225bf98037dcbec1bbd
trusty-clipped-extension-2.0.14 spec/dummy/tmp/cache/assets/test/sprockets/f40cfb94ac60b405447b97bfd2f0b154
trusty-clipped-extension-2.0.12 spec/dummy/tmp/cache/assets/test/sprockets/209b35b7fcbb8225bf98037dcbec1bbd
trusty-clipped-extension-2.0.12 spec/dummy/tmp/cache/assets/test/sprockets/f40cfb94ac60b405447b97bfd2f0b154