foreign_office 0.7.1 → 0.7.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: ffa19274a9c4f956525240daf76d9fff4b59baa5
4
- data.tar.gz: ca6e62d10fc74ae7bcea1274627e79ae87af8e14
3
+ metadata.gz: 513b5a3825a665466dc9959be0ea56e5cdd315f7
4
+ data.tar.gz: 8c0d22a6225642fe2c38ede9c9e9da476076f0b2
5
5
  SHA512:
6
- metadata.gz: a90ad073122328872eb22db38205dde687f70ea3c69a5a218fbea4014107418e2715c8baf1af198b4d1d87dba4646755703a3e24bef9bbd443edf32f35376a86
7
- data.tar.gz: 0b16680cbb1ecd2529392ecc48a53b59267475a7a47d901f2de47822da99d2b1bce1d1231bf08b296a876dfc2ddf58015d7e46d53a160b49b93e01e070556ddd
6
+ metadata.gz: f0f7217c8d535f68282584d5378d29c55955461a3eba433355ab5edd4ead4cf4f8249f2c7ac7827d715ee6d715a254a8bf7b734073a293a330dbee0d68402ab6
7
+ data.tar.gz: cde5d4d1e0eed4c3362484c6d9d54c238026eaa1bcad5d1474d6a73680519a2c7fece3a503dccaa723eaa47633f550fc3cd71494ed7bc5e8935113deb13485b5
@@ -118,7 +118,11 @@ var ForeignOfficeListener = Class.extend({
118
118
  var new_value = m.object[this.object_key];
119
119
  switch(this.$listener.get(0).nodeName.toLowerCase()){
120
120
  case 'input': case 'select':
121
- this.$listener.val(new_value);
121
+ if(this.$listener.attr('type') == 'checkbox'){
122
+ this.$listener.prop('checked', new_value);
123
+ } else {
124
+ this.$listener.val(new_value);
125
+ }
122
126
  break;
123
127
 
124
128
  case 'img':
@@ -1,3 +1,3 @@
1
1
  module ForeignOffice
2
- VERSION = "0.7.1"
2
+ VERSION = "0.7.2"
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.7.1
4
+ version: 0.7.2
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: 2015-04-24 00:00:00.000000000 Z
12
+ date: 2015-04-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails