data-confirm-modal 1.6.1 → 1.6.2

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: 8e43b456cdb22c7ec4cb17bf6d2de3ba2d6cc98c
4
- data.tar.gz: 29c97b739e4923291eb10c5a64ec7aa31409fc05
3
+ metadata.gz: 1422b45ab15ba70a478143ec995ed048c0d82440
4
+ data.tar.gz: 34d358ad953ff69f7512e95c47ffdd196dc8a9b7
5
5
  SHA512:
6
- metadata.gz: 739801c29ed6606349189ab5f45aadc3fdcfb89d589ed50a0c09f374da160b0f531c3a4f9053645627a693249bd431b0b3bfcadfaa21f68c24066d79ee8548e3
7
- data.tar.gz: 63c9c5a48634e9db202fbda0253751d35fa23812b70dc25d1884745b95d68272a3e05f47e794d8f44ab053e98589c333e7d73298e42d3c174ea5b2824e5a5a4f
6
+ metadata.gz: 19683e409abb034d2b3e433f0fd6c2bd800eec58916362378d19c5e19a8d49cc75e114bc3ba412c45c92a6a683febfd4cadb4198d54503fe65a0b47b3ed795ae
7
+ data.tar.gz: f880065ef14bf87900c851cea6e08dee9e6115f3ccb293a237230c3d2a1756e4f6803343f5204dc3da05797c7049e95729bf534b44a93be4c204ddc39c58e2c5
@@ -1,3 +1,3 @@
1
1
  module DataConfirmModal
2
- VERSION = '1.6.1'
2
+ VERSION = '1.6.2'
3
3
  end
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "data-confirm-modal",
3
- "version": "1.6.1",
3
+ "version": "1.6.2",
4
4
  "description": "Makes Rails' link_to confirm: 'foo' build a Bootstrap Modal instead of calling the browser's confirm() API.",
5
5
  "main": "vendor/assets/javascripts/data-confirm-modal.js",
6
6
  "repository": "https://github.com/ifad/data-confirm-modal.git",
@@ -302,7 +302,7 @@
302
302
  return modal;
303
303
  };
304
304
 
305
- if ($.rails) {
305
+ if (window.Rails || $.rails) {
306
306
  /**
307
307
  * Attaches to Rails' UJS adapter's 'confirm' event, triggered on elements
308
308
  * having a `data-confirm` attribute set.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: data-confirm-modal
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.1
4
+ version: 1.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcello Barnaba
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-11 00:00:00.000000000 Z
11
+ date: 2018-03-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties