recordselect_vho 3.0.2 → 3.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -349,7 +349,6 @@ $.extend(RecordSelect.Abstract.prototype, {
|
|
|
349
349
|
if (!elem) elem = this.container.find('ol li.record').first();
|
|
350
350
|
this.highlight(elem);
|
|
351
351
|
break;
|
|
352
|
-
case 32: // Event.KEY_SPACE
|
|
353
352
|
case 13: // Event.KEY_RETURN
|
|
354
353
|
if (this.current) this.current.find('a').click();
|
|
355
354
|
break;
|
|
@@ -30,7 +30,12 @@ module RecordSelect
|
|
|
30
30
|
search_pattern = record_select_config.full_text_search? ? '%?%' : '?%'
|
|
31
31
|
|
|
32
32
|
if params[:search] and !params[:search].strip.empty?
|
|
33
|
-
|
|
33
|
+
if record_select_config.full_text_search?
|
|
34
|
+
tokens = params[:search].strip.split(' ')
|
|
35
|
+
else
|
|
36
|
+
tokens = []
|
|
37
|
+
tokens << params[:search].strip
|
|
38
|
+
end
|
|
34
39
|
|
|
35
40
|
where_clauses = record_select_config.search_on.collect { |sql| "#{sql} LIKE ?" }
|
|
36
41
|
phrase = "(#{where_clauses.join(' OR ')})"
|
data/recordselect_vho.gemspec
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = %q{recordselect_vho}
|
|
8
|
-
s.version = "3.0.
|
|
8
|
+
s.version = "3.0.3"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["Volker Hochstein", "Lance Ivy"]
|
|
12
|
-
s.date = %q{2011-02-
|
|
12
|
+
s.date = %q{2011-02-03}
|
|
13
13
|
s.description = %q{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}
|
|
14
14
|
s.email = %q{activescaffold@googlegroups.com}
|
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: recordselect_vho
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 1
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 3
|
|
8
8
|
- 0
|
|
9
|
-
-
|
|
10
|
-
version: 3.0.
|
|
9
|
+
- 3
|
|
10
|
+
version: 3.0.3
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Volker Hochstein
|
|
@@ -16,7 +16,7 @@ autorequire:
|
|
|
16
16
|
bindir: bin
|
|
17
17
|
cert_chain: []
|
|
18
18
|
|
|
19
|
-
date: 2011-02-
|
|
19
|
+
date: 2011-02-03 00:00:00 +01:00
|
|
20
20
|
default_executable:
|
|
21
21
|
dependencies:
|
|
22
22
|
- !ruby/object:Gem::Dependency
|