ama_layout 9.4.0 → 9.4.1

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: df60500edfc1d72f80fc850fd36ea0ddda6a96a3
4
- data.tar.gz: f57293ea7f15eb526a4900a704fd242c9d8d5d7d
3
+ metadata.gz: 5eec21049a6f1660f9786d4d1a0615674d81e2bb
4
+ data.tar.gz: 8ccc19c0885fc02d09a8a75083ccc61eb2b95800
5
5
  SHA512:
6
- metadata.gz: 14dcbcda3591d7fff2dc4843f8b38a70e4510a20dc72482397fe208473eb17eb0f77ea92537f96330c5b66a28464d92de4fb5277d389b4947ebac4369ac0ea63
7
- data.tar.gz: 5701b177fd4c1695e757477058fc5949f92141bc18d4925f4664cae87279743bddf7cb365561417649238de89a104b70b320361dd7abedd8a430b02b4e66ba78
6
+ metadata.gz: 97d8fd7d8652dbb53574478c7f6f62208699cb12c579d1bda62ca6abbd52aae5924ff592d124c9b25878ef5d6db384faa6e7ef476925198bc71dd02ea0f98af7
7
+ data.tar.gz: dd26f7f47189d45689c9f0eb6b2b62ee6203df78dcf6d58979a2714d1f513eb4a836ec5f8f62ec19113a52cf4eacc33fec141039f76c427fc7098bee4b2e6a09
@@ -17,7 +17,12 @@ $.rails.allowAction = function(link){
17
17
  */
18
18
  $.rails.confirmed = function(link){
19
19
  link.data('confirm', null);
20
- link.trigger('click.rails');
20
+ if (link.data('method')){
21
+ // let rails handle non-GET requests
22
+ // (i.e. data-method="delete")
23
+ return link.trigger('click.rails');
24
+ }
25
+ window.location.href = link.attr('href');
21
26
  }
22
27
 
23
28
  /*
@@ -1,3 +1,3 @@
1
1
  module AmaLayout
2
- VERSION = '9.4.0'
2
+ VERSION = '9.4.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ama_layout
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.4.0
4
+ version: 9.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael van den Beuken
@@ -18,7 +18,7 @@ authors:
18
18
  autorequire:
19
19
  bindir: bin
20
20
  cert_chain: []
21
- date: 2018-04-11 00:00:00.000000000 Z
21
+ date: 2018-06-22 00:00:00.000000000 Z
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency
24
24
  name: foundation-rails