rails3-jquery-autocomplete 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +1 -1
- data/Rakefile +1 -1
- data/lib/generators/templates/autocomplete-rails.js +4 -2
- metadata +5 -6
data/README.markdown
CHANGED
data/Rakefile
CHANGED
@@ -10,7 +10,7 @@ begin
|
|
10
10
|
gem.email = "david.padilla@crowdint.com"
|
11
11
|
gem.homepage = "http://github.com/crowdint/rails3-jquery-autocomplete"
|
12
12
|
gem.authors = ["David Padilla"]
|
13
|
-
gem.add_development_dependency "rails", ">= 3.0.0
|
13
|
+
gem.add_development_dependency "rails", ">= 3.0.0"
|
14
14
|
gem.files = %w(README.markdown Rakefile) + Dir.glob("{lib,test}/**/*")
|
15
15
|
|
16
16
|
end
|
@@ -20,8 +20,10 @@ $(document).ready(function(){
|
|
20
20
|
source: $(this).attr('data-autocomplete'),
|
21
21
|
select: function(event, ui) {
|
22
22
|
$(this).val(ui.item.value),
|
23
|
-
|
24
|
-
|
23
|
+
function(){
|
24
|
+
if ($(this).attr('id_element')) {
|
25
|
+
$($(this).attr('id_element')).val(ui.item.id);
|
26
|
+
}
|
25
27
|
}
|
26
28
|
return false;
|
27
29
|
}
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails3-jquery-autocomplete
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 23
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 2
|
10
|
+
version: 0.3.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- David Padilla
|
@@ -26,13 +26,12 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
hash:
|
29
|
+
hash: 7
|
30
30
|
segments:
|
31
31
|
- 3
|
32
32
|
- 0
|
33
33
|
- 0
|
34
|
-
|
35
|
-
version: 3.0.0.rc2
|
34
|
+
version: 3.0.0
|
36
35
|
type: :development
|
37
36
|
version_requirements: *id001
|
38
37
|
description: Use jQuery's autocomplete plugin with Rails 3.
|