recordselect 3.2.2 → 3.2.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -422,7 +422,7 @@ RecordSelect.Single = RecordSelect.Abstract.extend({
|
|
422
422
|
this.obj.attr('name', this.options.field_name || '');
|
423
423
|
|
424
424
|
// initialize the values
|
425
|
-
this.set(this.options.id, this.options.label);
|
425
|
+
if (this.options.label) this.set(this.options.id, this.options.label);
|
426
426
|
|
427
427
|
this._respond_to_text_field(this.obj);
|
428
428
|
if (this.obj.focused) this.open(); // if it was focused before we could attach observers
|
@@ -464,7 +464,7 @@ RecordSelect.Autocomplete = RecordSelect.Abstract.extend({
|
|
464
464
|
this.container.addClass('record-select-autocomplete');
|
465
465
|
|
466
466
|
// initialize the values
|
467
|
-
this.set(this.options.label);
|
467
|
+
if (this.options.label) this.set(this.options.label);
|
468
468
|
|
469
469
|
this._respond_to_text_field(this.obj);
|
470
470
|
if (this.obj.focused) this.open(); // if it was focused before we could attach observers
|
@@ -295,7 +295,7 @@ RecordSelect.Single.prototype = Object.extend(new RecordSelect.Abstract(), {
|
|
295
295
|
this.obj.name = this.options.field_name || '';
|
296
296
|
|
297
297
|
// initialize the values
|
298
|
-
this.set(this.options.id, this.options.label);
|
298
|
+
if (this.options.label) this.set(this.options.id, this.options.label);
|
299
299
|
|
300
300
|
this._respond_to_text_field(this.obj);
|
301
301
|
if (this.obj.focused) this.open(); // if it was focused before we could attach observers
|
@@ -337,7 +337,7 @@ RecordSelect.Autocomplete.prototype = Object.extend(new RecordSelect.Abstract(),
|
|
337
337
|
this.container.addClassName('record-select-autocomplete');
|
338
338
|
|
339
339
|
// initialize the values
|
340
|
-
this.set(this.options.label);
|
340
|
+
if (this.options.label) this.set(this.options.label);
|
341
341
|
|
342
342
|
this._respond_to_text_field(this.obj);
|
343
343
|
if (this.obj.focused) this.open(); // if it was focused before we could attach observers
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: recordselect
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 9
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 3
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 3.2.
|
9
|
+
- 3
|
10
|
+
version: 3.2.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Sergio Cambra
|
@@ -17,10 +17,11 @@ autorequire:
|
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
19
|
|
20
|
-
date: 2012-
|
20
|
+
date: 2012-03-15 00:00:00 Z
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
23
|
-
|
23
|
+
type: :development
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
24
25
|
none: false
|
25
26
|
requirements:
|
26
27
|
- - ">="
|
@@ -29,12 +30,12 @@ dependencies:
|
|
29
30
|
segments:
|
30
31
|
- 0
|
31
32
|
version: "0"
|
32
|
-
|
33
|
-
prerelease: false
|
34
|
-
type: :development
|
33
|
+
version_requirements: *id001
|
35
34
|
name: shoulda
|
35
|
+
prerelease: false
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
|
-
|
37
|
+
type: :development
|
38
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
38
39
|
none: false
|
39
40
|
requirements:
|
40
41
|
- - ~>
|
@@ -45,12 +46,12 @@ dependencies:
|
|
45
46
|
- 0
|
46
47
|
- 0
|
47
48
|
version: 1.0.0
|
48
|
-
|
49
|
-
prerelease: false
|
50
|
-
type: :development
|
49
|
+
version_requirements: *id002
|
51
50
|
name: bundler
|
51
|
+
prerelease: false
|
52
52
|
- !ruby/object:Gem::Dependency
|
53
|
-
|
53
|
+
type: :development
|
54
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
54
55
|
none: false
|
55
56
|
requirements:
|
56
57
|
- - ">="
|
@@ -59,12 +60,12 @@ dependencies:
|
|
59
60
|
segments:
|
60
61
|
- 0
|
61
62
|
version: "0"
|
62
|
-
|
63
|
-
prerelease: false
|
64
|
-
type: :development
|
63
|
+
version_requirements: *id003
|
65
64
|
name: rcov
|
65
|
+
prerelease: false
|
66
66
|
- !ruby/object:Gem::Dependency
|
67
|
-
|
67
|
+
type: :runtime
|
68
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
68
69
|
none: false
|
69
70
|
requirements:
|
70
71
|
- - ">="
|
@@ -75,10 +76,9 @@ dependencies:
|
|
75
76
|
- 1
|
76
77
|
- 3
|
77
78
|
version: 3.1.3
|
78
|
-
|
79
|
-
prerelease: false
|
80
|
-
type: :runtime
|
79
|
+
version_requirements: *id004
|
81
80
|
name: rails
|
81
|
+
prerelease: false
|
82
82
|
description: RecordSelect is a Rails widget to help you pick one record out of many. I designed it as a more usable and performant alternative to generating a massive dropdown list
|
83
83
|
email: activescaffold@googlegroups.com
|
84
84
|
executables: []
|