epi_js 0.0.5 → 0.0.6
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 -4
- 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: d7596aa2e8cfc85682ac3a3e761ce31903d17386
|
4
|
+
data.tar.gz: 83f8e13bed56f5fdd5f3f7ae7dd50898f63ce754
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a525154db67448d213b4a1091bb6f42587193c5a7f5aa52f0ba46932359708858da57feb97fcfeb3112fa6bf9f26e49c97d8a602f6f3aaf413f22837517dbf5f
|
7
|
+
data.tar.gz: dd47317531bdc6d3d099c52ef7abe016c51eee7efc8d473ee07ac15b210f73db397f008f6f6276af1678a8bb15444efd2ef19e6b1eea8c0b97a23211e8bc5de6
|
data/lib/epi_js/version.rb
CHANGED
@@ -2,12 +2,12 @@
|
|
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
|
-
$modal.html(data).modal()
|
5
|
+
$modal.html(data).modal()
|
6
|
+
$(document).trigger('ajax-modal-show')
|
7
|
+
|
8
|
+
$modal.on 'hidden', (e) ->
|
6
9
|
if e.target is this
|
7
10
|
$(@).remove()
|
8
|
-
.on 'show', (e) ->
|
9
|
-
if e.target is this
|
10
|
-
$(document).trigger('ajax-modal-show')
|
11
11
|
.on 'shown', (e) ->
|
12
12
|
if e.target is this
|
13
13
|
$(document).trigger('ajax-modal-shown')
|