effective_bootstrap 0.5.17 → 0.5.18

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
  SHA256:
3
- metadata.gz: 25fcb1d9e32a78b222c60c8f6d96329dc98d02c9ad0a8b351b360c03d5d8d235
4
- data.tar.gz: 0d71d225098571f46db4ba18a2c1d5d4296fbb6b2bcc121c872be49565844c3c
3
+ metadata.gz: 8b2dc1d10a6a9d5ee3dfad575e5197b04e6eb64f866853ee50b2298a74cc18e7
4
+ data.tar.gz: b809f04a6e3fbba1e8dacb4e1f16ef97c76d9751871c6994fdc8051523dfd938
5
5
  SHA512:
6
- metadata.gz: 7759dcfca37bfbd15dd6c99669dcc7b775baaadd999fa5a3357e7dedf7662b1fbaf91d7ccd27f18e92adfdbd8f509c29e250bf2dd0d0b6f2cebf054948292dac
7
- data.tar.gz: e78828dd7b6c0b525a8457d29b46eb4f20de8ba5e40b4a2cae0020d038358ca27d39e071b4ba97bd7b74c7d3c7b05249cf7ffad9b6889254ca5514c03a035a80
6
+ metadata.gz: 0cef677c259ef1691d61139869947fd13c4dd067e411608caf2baa6e87d2e0e909b6c3b5137c6f8cf042e0074a12ff7963a6c0104e17b4191d5e75bd9853db91
7
+ data.tar.gz: 77da14934b26860ec7fa29294487a9e628d471a61237acfa888decf7ad459903b36608e4b38b06dcfe28e4ac67cb5b47731f8a088729553777f28c9266989106
@@ -3,6 +3,7 @@
3
3
  //= require ./effective_bootstrap/form
4
4
  //= require ./effective_bootstrap/logic
5
5
  //= require ./effective_bootstrap/other
6
+ //= require ./effective_bootstrap/tabs
6
7
 
7
8
  //= require ./effective_datetime/input
8
9
  //= require ./effective_date/input
@@ -0,0 +1,6 @@
1
+ showTab = ->
2
+ if document.location.hash.length > 0
3
+ $('.nav.nav-tabs').find("a[href='#{document.location.hash}']").tab('show')
4
+
5
+ $ -> showTab()
6
+ $(document).on 'turbolinks:load', -> showTab()
@@ -1,3 +1,3 @@
1
1
  module EffectiveBootstrap
2
- VERSION = '0.5.17'.freeze
2
+ VERSION = '0.5.18'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_bootstrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.17
4
+ version: 0.5.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-06-11 00:00:00.000000000 Z
11
+ date: 2019-06-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -375,6 +375,7 @@ files:
375
375
  - app/assets/javascripts/effective_bootstrap/form.js.coffee
376
376
  - app/assets/javascripts/effective_bootstrap/logic.js.coffee
377
377
  - app/assets/javascripts/effective_bootstrap/other.js.coffee
378
+ - app/assets/javascripts/effective_bootstrap/tabs.js.coffee
378
379
  - app/assets/javascripts/effective_checks/initialize.js.coffee
379
380
  - app/assets/javascripts/effective_checks/input.js
380
381
  - app/assets/javascripts/effective_ck_editor/initialize.js.coffee