epi_js 0.0.14 → 0.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 588c630011331892fdd108829ae254162f24c5c3
4
- data.tar.gz: 0326045050fbc9be9931513909758821536e4b14
3
+ metadata.gz: 3b4cc51269e19dd1836013054526cf55ef8c7598
4
+ data.tar.gz: c3528485ee1c4aaff1b68ab84aa11855cd391440
5
5
  SHA512:
6
- metadata.gz: 7f9b2fc5b39f2d82b8080f60ab41916816f5b06a8307c88a71ac2cd6a84fdc6a370d4fdfe564c462ab5f427c3eed5451ec856e317a86b1e58e308d3f22d77c36
7
- data.tar.gz: a590bfc2c8c4a1cc2bb72356c4bf3e92cf24d28ebd76de396078946c37e6a0375911d4b7b5aa7ad0c10ec482334934d98c3b2d7fd442ac5a8959851697ae98f0
6
+ metadata.gz: fe32e6ed2c33966e478c41a3a6e30594a9161356cf0646148981e52d22d27c93ad52a7b07f2324f2ac5ee43ec181ef748ef8b9af11dc186876d289e159f57e13
7
+ data.tar.gz: 24db02c4cb965d3656f2c7c81d449de2dfacfd37d8d22490b28f33a4c20f8af67d8da5df9e8df69f298a9e0f727f106f8923c7460544ea9da55367854cd83b12
@@ -1,3 +1,3 @@
1
1
  module EpiJs
2
- VERSION = "0.0.14"
2
+ VERSION = "0.0.15"
3
3
  end
@@ -5,10 +5,12 @@
5
5
  $('body').append($modal.html(data).modal())
6
6
  $(document).trigger('ajax-modal-show')
7
7
 
8
- $modal.on 'hidden.bs.modal', (e) ->
8
+ # Bootstrap 2.x the events are shown and hidden
9
+ # Bootstrap 3.x the event is hidden.bs.modal and shown.bs.modal
10
+ $modal.on 'hidden.bs.modal hidden', (e) ->
9
11
  if e.target is this
10
12
  $(@).remove()
11
- .on 'shown.bs.modal', (e) ->
13
+ .on 'shown.bs.modal shown', (e) ->
12
14
  setTimeout("$('#modalWindow [autofocus]').first().focus()", 0)
13
15
  $(document).trigger('ajax-modal-shown')
14
16
  ) jQuery
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: epi_js
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.14
4
+ version: 0.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shuo Chen