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 +4 -4
- data/lib/epi_js/version.rb +1 -1
- data/vendor/assets/javascripts/ajax_modal.coffee +6 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 32b683bebf316f9df7642f24b8785cd1a03bcb74
|
4
|
+
data.tar.gz: d6ff19c68d8d462284902c28498581c2a1c44c80
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0614d2f1cc10a0b0fe2ed1ae8f217243210fa927e16d1aa4e2dedc2031228c08768ac941d84bf8e0f1663062478ae60c7999ad3851a09b3656ccf8e55e4cab2b
|
7
|
+
data.tar.gz: ca0920db179c91be440d38af753a2542a332540bf81dac909ff6dcd7a470389a047456ebee3769fa3fdc8d7ebfee2d8823c38063359555a98f98514d893fb545
|
data/lib/epi_js/version.rb
CHANGED
@@ -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.
|
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-
|
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.
|
137
|
+
rubygems_version: 2.4.6
|
138
138
|
signing_key:
|
139
139
|
specification_version: 4
|
140
140
|
summary: jQuery scripts used in various projects
|