epi_js 1.0.12 → 1.0.13

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
- SHA1:
3
- metadata.gz: 39a28a9c54641127a72331953f0d3f6372819eef
4
- data.tar.gz: 716b740b743bc48e39165ec6a0a466489f61223b
2
+ SHA256:
3
+ metadata.gz: cb76dd83c45c5ed3823fe1a8aece34c99e49fc50cdaea1a9666b722b6921c82c
4
+ data.tar.gz: a2a4b3a32d55acedbe5c928c65a6a505e5139428efaacfa244267976092edc73
5
5
  SHA512:
6
- metadata.gz: a61f61810240604f5a17286ee1739d5648aec6bcf25eb4ecba5a3965d14a7acfec08ee9a59e9564c59ea9d014f01283bc13f255f4d1779f9cba93106009bc474
7
- data.tar.gz: 4996251ba1005c3294ab924f387acfd9e96d3154d8f98563f87e21978ae62cd2a1b30bf476aa1ed238b274b541776031bacca42be8bc698753cd362b751abe1b
6
+ metadata.gz: fec6a0ce916ec73c1f286d29b3832a180cf95af53c56a5fe9d8999c672aba160875e077cd982e2685ad70412667990f96adc8ca3bd73d3b0839fdbf7745f9f27
7
+ data.tar.gz: dc8847156cdb2d850589e5d1b5b9d25c0f4502bb063fb04a008407b86d80454af8890042a6c60ecd0cffd1fc487ac905198c71f404985f768792ae480de1fe6e
@@ -1,3 +1,3 @@
1
1
  module EpiJs
2
- VERSION = "1.0.12"
2
+ VERSION = "1.0.13"
3
3
  end
@@ -2,7 +2,7 @@
2
2
  'use strict'
3
3
  $.ajaxModal = (url, params) ->
4
4
  $.get url, params, (data) ->
5
- $modal = if $('#modalWindow').length > 0
5
+ $modal = if $('#modalWindow').length > 0
6
6
  $('#modalWindow')
7
7
  else
8
8
  $('<div id="modalWindow" class="modal fade" tabindex="-1" role="dialog"></div>')
@@ -30,7 +30,8 @@
30
30
  $(document).trigger('ajax-modal-shown')
31
31
 
32
32
  $ ->
33
- $(document.body).on 'click', 'a.ajax-modal, a[data-toggle="ajax-modal"]', (e) ->
33
+ $(document.body).on 'click', 'a.ajax-modal, [data-toggle="ajax-modal"]', (e) ->
34
34
  e.preventDefault()
35
- $.ajaxModal $(@).attr('href'), $(@).data('params')
35
+ url = $(@).data('url') ? $(@).attr('href')
36
+ $.ajaxModal url, $(@).data('params')
36
37
  ) jQuery
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: 1.0.12
4
+ version: 1.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shuo Chen
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-09-25 00:00:00.000000000 Z
12
+ date: 2019-04-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties
@@ -139,8 +139,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
139
139
  - !ruby/object:Gem::Version
140
140
  version: '0'
141
141
  requirements: []
142
- rubyforge_project:
143
- rubygems_version: 2.6.13
142
+ rubygems_version: 3.0.3
144
143
  signing_key:
145
144
  specification_version: 4
146
145
  summary: jQuery scripts used in various projects