flotilla_js_rails 1.0.1 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4235976052bce6cd7dd6bf0ec897697b87fc8144
4
- data.tar.gz: 374c9f8bf1fffd76e44e7a691c3d159fe265c130
3
+ metadata.gz: 4652d05bf5abb1ce4133cd2d56990e386c342444
4
+ data.tar.gz: c344de78d0a7cc8f77ab35c7f2a9883738ad919c
5
5
  SHA512:
6
- metadata.gz: 8e6671934192d7305f5e4b241ac8cdd4c887bffff4fe67afc5e187c3b059acf147bee2b865a38392f7047a5fc2fd6dee3c5521ca0e6e6d13846dc9f0f451e87d
7
- data.tar.gz: 5605d2dd5693369d3f56c3da52e6d9200e62f097e22bfba526944e1fe44e7445b3bf2588d74d0da7431a397b3efd7aef3a47a9de11bd540856d467a7bb837f12
6
+ metadata.gz: 1d57a91170a003839aa2de8f0ed1ec66dfe26efe77ae76aa9cb9974e76c6706214d17915c0495f449ea627810081b5d471514916609b5c5484d40801facd9d1a
7
+ data.tar.gz: 9e8b1c71dd7f293e3ba12d8755e55cf2a53ae0b754adb0e034e35400f1f54abe5703f55b4904304c18321b40ce064aba8f6f2a9db814a5a02c8272d22577baf3
data/README.md CHANGED
@@ -45,10 +45,10 @@ application.js
45
45
  Lorem ipsum dolor sit amet, consectetur adipisicing elit. Voluptate iusto fugit autem unde incidunt eos ut quos aspernatur facilis corporis possimus obcaecati, et molestiae sint vero optio quia dignissimos commodi!
46
46
  </div>
47
47
  <div class="Flotilla-content">
48
- Lorem ipsum dolor sit amet, consectetur adipisicing elit. Obcaecati dolorum qui impedit voluptatem pariatur harum ipsa, debitis laudantium, facere minima, labore deleniti! Vero sapiente vel harum, repudiandae et culpa reprehenderit?
48
+ Libero nisi quasi vero laborum dolorem sequi. Tenetur eaque officiis, corporis! Adipisci sit qui corporis fugit, veritatis omnis facere accusamus nihil quas, rem saepe iusto non ea nostrum aliquam laborum
49
49
  </div>
50
50
  <div class="Flotilla-content">
51
- Lorem ipsum dolor sit amet, consectetur adipisicing elit. Obcaecati dolorum qui impedit voluptatem pariatur harum ipsa, debitis laudantium, facere minima, labore deleniti! Vero sapiente vel harum, repudiandae et culpa reprehenderit?
51
+ Delectus error doloribus. Sint id itaque perspiciatis harum minus magni quaerat dolore quam earum illo velit ipsam facilis, aliquid sapiente numquam atque!
52
52
  </div>
53
53
  </div>
54
54
  ```
@@ -1,3 +1,3 @@
1
1
  module FlotillaJsRails
2
- VERSION = "1.0.1"
2
+ VERSION = "1.1.1"
3
3
  end
@@ -7,20 +7,19 @@
7
7
  var Flotilla = {};
8
8
 
9
9
  (function(N, $){ //start IIFE
10
-
11
10
  Flotilla.assignDataIDs = function(){
12
11
  this.$tabsTab.each(function(i){
12
+ var index = $(this).index();
13
13
  $(this).attr('data-id', i);
14
- $('.Flotilla-content:eq('+i+')').attr('data-id', i);
14
+ $(this).siblings('.Flotilla-content').eq(index).attr('data-id', i);
15
15
  });
16
16
  };
17
-
18
17
  Flotilla.eventHandlers = function(){
19
18
  this.$tabsTab.on('click', function(){
20
19
  var id = $(this).attr('data-id');
21
20
  $(this).siblings('.Flotilla-tab').removeClass('active');
22
21
  $(this).addClass('active');
23
- $(this).parents('.Flotilla-tab-wrap').find('.Flotilla-content').removeClass('active');
22
+ $(this).closest('.Flotilla-tab-wrap').children('.Flotilla-content').removeClass('active');
24
23
  $('.Flotilla-content[data-id='+id+']').addClass('active');
25
24
  });
26
25
  };
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flotilla_js_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Tan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-26 00:00:00.000000000 Z
11
+ date: 2016-09-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -83,3 +83,4 @@ signing_key:
83
83
  specification_version: 4
84
84
  summary: This gem exposes the SCSS and JS for Flotilla JS
85
85
  test_files: []
86
+ has_rdoc: