foreign_office 0.10.3 → 0.11.0

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: a773f1ee750332f05fcfe3616608a8dbaf5dd8a3
4
- data.tar.gz: e2263a4fb8e0981ac9c11fdda7880ec634525ac3
3
+ metadata.gz: 58f5ac5496e5888da322feb1eb84beb385de5a5a
4
+ data.tar.gz: 9bca157aa551f1b48bb25a65d10afa983b640a05
5
5
  SHA512:
6
- metadata.gz: abf8589ba61855da7ffd5edb54db8e2e464cb54bdd6e5bb81da429c7d0f91c06ff29ec5420653e15a4960dc988e58ffbcd19189cd11fdd91dd430d157caea448
7
- data.tar.gz: 4fc9d6b60d3478099d11edcb7b2ae8f7e7d2646c62e47b88b45505bc8f94c1627c8475904ff7df4a0134242e0db3eac210b56aa920d9f043a69265b02017f30e
6
+ metadata.gz: 1b0100206a46ef1066ea4458c96fdbd5e9b03336bcdae09633b176e251daba1221c55bab2aa328832ec5635617b81fc700ad318c4be8f9db84d1f3398fe491cc
7
+ data.tar.gz: 293e79b4aa1c1f970844746966d19516358df349d3dd5d0dd9c418f0b91a9673a29c65edf668528675a176d4ba475b8e2b23a1a26d564adc0a05feae51043e68
@@ -154,8 +154,10 @@ var ForeignOfficeListener = Class.extend({
154
154
 
155
155
  default:
156
156
  if(this.$listener.data('trigger-on-message')){
157
- if(new_value){
158
- this.$listener.attr('href',new_value);
157
+ if(new_value && (new_value != 'false')){
158
+ if((new_value != true) && (new_value != 'true')){
159
+ this.$listener.attr('href',new_value);
160
+ }
159
161
  if(this.progress_indicator){
160
162
  this.progress_indicator.stop();
161
163
  }
@@ -20,7 +20,7 @@ module ForeignOffice
20
20
  hash = {listener: true, channel: resource.class.name + resource.id.to_s, key: key}
21
21
  hash[:reveal_hide] = true if reveal_hide
22
22
  hash[:endpoint] = endpoint if endpoint
23
- hash[:trigger] = true if trigger
23
+ hash[:trigger_on_message] = true if trigger
24
24
  hash
25
25
  end
26
26
  end
@@ -1,3 +1,3 @@
1
1
  module ForeignOffice
2
- VERSION = "0.10.3"
2
+ VERSION = "0.11.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreign_office
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.3
4
+ version: 0.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Draut
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-01-27 00:00:00.000000000 Z
12
+ date: 2016-02-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails