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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d6b700d1bfa1e30bdd401f94f09aaaa794df2dba
|
4
|
+
data.tar.gz: fc272d72d501d3ec39bfebd9856f9d3c2cd29ff8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|
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.
|
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-
|
13
|
+
date: 2016-05-25 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: shoulda
|