visual_condition_builder 2.1.4 → 2.1.5

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: e5d6d3d0c9810d4ef5e4be6dc926b789fea06d30
4
- data.tar.gz: 5df8bfae621f5c89746721e936e5028059a11c39
3
+ metadata.gz: 141855f6f80c2d8eb3165471ec608c4d1cd3c1d1
4
+ data.tar.gz: 0b6b38e786a45347b3df4ce3c24cf73ebd16b077
5
5
  SHA512:
6
- metadata.gz: 2c6c65c06247ac075cdbd6124d9749f285c247c60fdf90fedcda4a319237d6ae0d2cc08b0d597744b3523c3342bdbf979b4e485b47bd5c676773f43f38120753
7
- data.tar.gz: f25e00e1db7d7d1da10accfec93a8ea85c634bc69e399f5233de4d48b45b022f4f560eeae3a400aa038b7bfc9d04ba2eb4f731358553cb418a63b68c5c58e3b8
6
+ metadata.gz: 26707f9caefdf86e61679e0ff200bd9c068aafd7aa73ad95cc9903c43026b1674f0427a441a4094b196c79aa993796fcceb535b7542f56e1304f43c59324cbc0
7
+ data.tar.gz: 2087b2a80d41a34ddf2141b435c242d8db2f43802c078c79970e9b5e22e4b46baca38c2897f7cf7cbd75f45625e61f9c0b7142c442f973eca092327344e7b520
@@ -66,16 +66,15 @@
66
66
  $elField = block.find('#field_' + new_id);
67
67
  $elOperators = block.find('#operators_' + new_id);
68
68
  $elValues = block.find('#values_' + new_id + ', #fixed_value_' + new_id);
69
-
70
- //EVENTS
71
- block.find('#remove_condition_' + new_id).on('click', event_remove_condition);
72
- $elOperators.on('change', event_load_values);
73
69
  }
74
70
 
71
+ //EVENTS
72
+ block.find('#remove_condition_' + new_id).on('click', event_remove_condition);
75
73
  $element.append(block);
76
74
 
77
75
  //LOAD OPERATORS
78
76
  if (typeof $elField != 'undefined') {
77
+ $elOperators.on('change', event_load_values);
79
78
  plugin.load_operators($elField);
80
79
  }
81
80
 
@@ -1,3 +1,3 @@
1
1
  module VisualConditionBuilder
2
- VERSION = "2.1.4"
2
+ VERSION = "2.1.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: visual_condition_builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.4
4
+ version: 2.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bruno Porto
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-28 00:00:00.000000000 Z
11
+ date: 2017-09-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails