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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0852e5d90bb73ac4db89ae4d39b74ff956bc182f
4
- data.tar.gz: 82fba0551b9f8b9e0fcb98a3975fe269c4aea932
3
+ metadata.gz: d7596aa2e8cfc85682ac3a3e761ce31903d17386
4
+ data.tar.gz: 83f8e13bed56f5fdd5f3f7ae7dd50898f63ce754
5
5
  SHA512:
6
- metadata.gz: f0d2415b33c2589762d8744b8285c6eaa55f01317c1d5539eafc49da2b529404fd16e850b0253b5f536a84bcb90ea5de17cb986b93e939cbb061803b0ee167fe
7
- data.tar.gz: abf3d40f5506789c982ed7e2658cf0b7888bcd719342c8bd99b9e302b26d3f6ac882e690d2a379b13ac2d7f0cc178154e11ef8bf963b84ced66daaede4dfa19f
6
+ metadata.gz: a525154db67448d213b4a1091bb6f42587193c5a7f5aa52f0ba46932359708858da57feb97fcfeb3112fa6bf9f26e49c97d8a602f6f3aaf413f22837517dbf5f
7
+ data.tar.gz: dd47317531bdc6d3d099c52ef7abe016c51eee7efc8d473ee07ac15b210f73db397f008f6f6276af1678a8bb15444efd2ef19e6b1eea8c0b97a23211e8bc5de6
@@ -1,3 +1,3 @@
1
1
  module EpiJs
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
@@ -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().on 'hidden', (e) ->
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')
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.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shuo Chen