epi_js 0.0.17 → 0.0.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
  SHA1:
3
- metadata.gz: c619cb02951e62d003b508663333e95f231f2c37
4
- data.tar.gz: 5d62cfe5b2749551379051428650c2640e1c0931
3
+ metadata.gz: 32b683bebf316f9df7642f24b8785cd1a03bcb74
4
+ data.tar.gz: d6ff19c68d8d462284902c28498581c2a1c44c80
5
5
  SHA512:
6
- metadata.gz: 3bd9dcba7ca4477f5987dc306f6f65a8cfa901f7677ece1519748593975ab9e9d37b4aaaf6a8b23a44c986abb88b0184d1df208b80556069ceb5a8df381fd5a8
7
- data.tar.gz: 98c7d3e541b320f97695f6461e6e3539543cff4b422dac5b6732f745c997a4aa3e3c0c46cc4534a9303d92903abb2180be12a1276dabd6de2e7ab5b7b5cd609a
6
+ metadata.gz: 0614d2f1cc10a0b0fe2ed1ae8f217243210fa927e16d1aa4e2dedc2031228c08768ac941d84bf8e0f1663062478ae60c7999ad3851a09b3656ccf8e55e4cab2b
7
+ data.tar.gz: ca0920db179c91be440d38af753a2542a332540bf81dac909ff6dcd7a470389a047456ebee3769fa3fdc8d7ebfee2d8823c38063359555a98f98514d893fb545
@@ -1,3 +1,3 @@
1
1
  module EpiJs
2
- VERSION = "0.0.17"
2
+ VERSION = "0.0.18"
3
3
  end
@@ -2,9 +2,15 @@
2
2
  $.ajaxModal = (url, params) ->
3
3
  $.get url, params, (data) ->
4
4
  $modal = if $('#modalWindow').size() > 0 then $('#modalWindow') else $('<div>').addClass('modal fade').attr('id', 'modalWindow')
5
+
6
+ alreadyShown = $modal.hasClass('in')
7
+
5
8
  $('body').append($modal.html(data).modal())
6
9
  $(document).trigger('ajax-modal-show')
7
10
 
11
+ if alreadyShown
12
+ $(document).trigger('ajax-modal-shown')
13
+
8
14
  # Bootstrap 2.x the events are shown and hidden
9
15
  # Bootstrap 3.x the event is hidden.bs.modal and shown.bs.modal
10
16
  $modal.on 'hidden.bs.modal hidden', (e) ->
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: epi_js
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.17
4
+ version: 0.0.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shuo Chen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-24 00:00:00.000000000 Z
11
+ date: 2015-10-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -134,7 +134,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
134
134
  version: '0'
135
135
  requirements: []
136
136
  rubyforge_project:
137
- rubygems_version: 2.4.3
137
+ rubygems_version: 2.4.6
138
138
  signing_key:
139
139
  specification_version: 4
140
140
  summary: jQuery scripts used in various projects