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 +5 -5
- data/lib/epi_js/version.rb +1 -1
- data/vendor/assets/javascripts/ajax_modal.coffee +4 -3
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: cb76dd83c45c5ed3823fe1a8aece34c99e49fc50cdaea1a9666b722b6921c82c
|
4
|
+
data.tar.gz: a2a4b3a32d55acedbe5c928c65a6a505e5139428efaacfa244267976092edc73
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fec6a0ce916ec73c1f286d29b3832a180cf95af53c56a5fe9d8999c672aba160875e077cd982e2685ad70412667990f96adc8ca3bd73d3b0839fdbf7745f9f27
|
7
|
+
data.tar.gz: dc8847156cdb2d850589e5d1b5b9d25c0f4502bb063fb04a008407b86d80454af8890042a6c60ecd0cffd1fc487ac905198c71f404985f768792ae480de1fe6e
|
data/lib/epi_js/version.rb
CHANGED
@@ -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,
|
33
|
+
$(document.body).on 'click', 'a.ajax-modal, [data-toggle="ajax-modal"]', (e) ->
|
34
34
|
e.preventDefault()
|
35
|
-
|
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.
|
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:
|
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
|
-
|
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
|