recordselect 3.4.13 → 3.4.14

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: 27726867a8ee68383565a730e8d355f332007436
4
- data.tar.gz: e0355e0e730163f4e8ddb2ae7a4e98f91b05b6e3
3
+ metadata.gz: d6b700d1bfa1e30bdd401f94f09aaaa794df2dba
4
+ data.tar.gz: fc272d72d501d3ec39bfebd9856f9d3c2cd29ff8
5
5
  SHA512:
6
- metadata.gz: ae6fdff4f1add643facf26fdc3efa1de06e7fc2afc31cd76ecfed2b7b52860cfa662ebc21ef234af9dc94ad64a52f1cdfe781854ddf3e5c480d0ddf41b6f9dc7
7
- data.tar.gz: 68589e9f5c20c2f10b3ef74b3c8971e2009483ba93b174350b01ca4ed5ce86ccdb8c2e0515b30d4159e1ccbd7465f2470054030096baa5657e74ba08a59e4ab0
6
+ metadata.gz: a0bc5de5324f5d122ca7540d87e47c8935e19c02eb3861f34f861f6a1ac775a0e80eca2a5722152d649a5cdf251cf22006b256b605d31551133cde2d32316d08
7
+ data.tar.gz: a6e48a71861cb063f17c319d9c3859a712a0717a0090fb8cc5fd446947160691444adf1c91a767fb8d9b54fc4fdbfcec972713bb87965a2f4cbc1a6a459bb32b
@@ -174,6 +174,9 @@ RecordSelect.Abstract = Class.extend({
174
174
  if (this.options.onchange && typeof this.options.onchange != 'function') {
175
175
  this.options.onchange = eval(this.options.onchange);
176
176
  }
177
+ if (this.options.onselect && typeof this.options.onselect != 'function') {
178
+ this.options.onselect = eval(this.options.onselect);
179
+ }
177
180
 
178
181
  if (RecordSelect.document_loaded) {
179
182
  this.onload();
@@ -9,7 +9,7 @@ module RecordSelectHelper
9
9
  def link_to_record_select(name, controller, options = {})
10
10
  options[:params] ||= {}
11
11
  options[:params].merge!(:controller => controller, :action => :browse)
12
- options[:onselect] = "function(id, label) {#{options[:onselect]}}" if options[:onselect]
12
+ options[:onselect] = "(function(id, label) {#{options[:onselect]}})" if options[:onselect]
13
13
  options[:html] ||= {}
14
14
  options[:html][:id] ||= "rs_#{rand(9999)}"
15
15
 
@@ -2,7 +2,7 @@ module RecordSelect
2
2
  module Version
3
3
  MAJOR = 3
4
4
  MINOR = 4
5
- PATCH = 13
5
+ PATCH = 14
6
6
 
7
7
  STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: recordselect
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.4.13
4
+ version: 3.4.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergio Cambra
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-05-23 00:00:00.000000000 Z
13
+ date: 2016-05-25 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: shoulda