Sha256: e5b04b3b49002ee8b19227d4883746f95320cb88354cda4969b82e939ca743a7

Contents?: true

Size: 1.6 KB

Versions: 2

Compression:

Stored size: 1.6 KB

Contents

{:uriI"file:///Users/piotrek/Code/cms/plotline/app/assets/javascripts/plotline/behaviors/dropdown.js?type=application/javascript&pipeline=self&id=b03e54865f3502c57692110bfbd491e57a3851e02cc7fe6db31841e842f762f5:ET:load_pathI"</Users/piotrek/Code/cms/plotline/app/assets/javascripts;T:
filenameI"[/Users/piotrek/Code/cms/plotline/app/assets/javascripts/plotline/behaviors/dropdown.js;T:	nameI" plotline/behaviors/dropdown;T:logical_pathI"(plotline/behaviors/dropdown.self.js;T:content_typeI"application/javascript;T:sourceI"Plotline.Behaviors.Dropdown = {
  initialize: function() {
    $(document).ready(function() {
      $('[data-behavior~=dropdown] .nav-item').click(function(e) {
        $(this).siblings("ul").toggleClass("visible");
        e.preventDefault();
      });
    });

    $(window).click(function(event) {
      if (!$('[data-behavior~=dropdown]').has(event.target).length) {
        $('[data-behavior~=dropdown] ul').removeClass("visible");
      }
    });
  }
}

Plotline.Behaviors.Dropdown.initialize();
;T:
metadata{:dependencieso:Set:
@hash{
I"environment-version;TTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"ifile-digest:///Users/piotrek/Code/cms/plotline/app/assets/javascripts/plotline/behaviors/dropdown.js;TT:
requiredo;;{:stubbedo;;{:
linkso;;{:charsetI"
utf-8;F:digest"%~E/Ed^b(Y(N,:
am2A:lengthi:dependencies_digest"%ͭe؊O.-5aE%3L:idI"Eb03e54865f3502c57692110bfbd491e57a3851e02cc7fe6db31841e842f762f5;F:
mtimel+V

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
plotline-0.1.1 test/dummy/tmp/cache/assets/sprockets/v3.0/If/IflG9uShCeDugAqFgWi76yak3CK0XhpW65B-6hjQw-g.cache
plotline-0.1.0 test/dummy/tmp/cache/assets/sprockets/v3.0/If/IflG9uShCeDugAqFgWi76yak3CK0XhpW65B-6hjQw-g.cache