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 +4 -4
- data/README.md +2 -2
- data/lib/flotilla_js_rails/version.rb +1 -1
- data/vendor/assets/javascripts/flotilla.js +3 -4
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4652d05bf5abb1ce4133cd2d56990e386c342444
|
4
|
+
data.tar.gz: c344de78d0a7cc8f77ab35c7f2a9883738ad919c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
-
|
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
|
```
|
@@ -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
|
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).
|
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.
|
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-
|
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:
|