epi_js 0.0.14 → 0.0.15
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 +4 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3b4cc51269e19dd1836013054526cf55ef8c7598
|
4
|
+
data.tar.gz: c3528485ee1c4aaff1b68ab84aa11855cd391440
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe32e6ed2c33966e478c41a3a6e30594a9161356cf0646148981e52d22d27c93ad52a7b07f2324f2ac5ee43ec181ef748ef8b9af11dc186876d289e159f57e13
|
7
|
+
data.tar.gz: 24db02c4cb965d3656f2c7c81d449de2dfacfd37d8d22490b28f33a4c20f8af67d8da5df9e8df69f298a9e0f727f106f8923c7460544ea9da55367854cd83b12
|
data/lib/epi_js/version.rb
CHANGED
@@ -5,10 +5,12 @@
|
|
5
5
|
$('body').append($modal.html(data).modal())
|
6
6
|
$(document).trigger('ajax-modal-show')
|
7
7
|
|
8
|
-
|
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
|