anaf_habtm 0.0.88 → 0.0.89

Sign up to get free protection for your applications and to get access to all the features.
data/anaf_habtm.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{anaf_habtm}
8
- s.version = "0.0.88"
8
+ s.version = "0.0.89"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Tyler Gannon"]
@@ -24,13 +24,13 @@ module AnafHabtm
24
24
 
25
25
  def tfwac(f, field, controller, opts={})
26
26
  opts["data-auto-complete"]='tf'
27
- opts["data-auto-complete-url"]=eval("\"#{controller.to_s.underscore.tableize}_path(:format=>:json)\"")
27
+ opts["data-auto-complete-url"]=eval("#{controller.to_s.underscore.tableize}_path(:format=>:json)")
28
28
  f.text_field field, opts
29
29
  end
30
30
 
31
31
  def text_area_with_auto_complete(f, field, controller, opts={})
32
32
  opts["data-auto-complete"]='ta'
33
- opts["data-auto-complete-url"]=eval("\"#{controller.to_s.underscore.tableize}_path(:format=>:json)\"")
33
+ opts["data-auto-complete-url"]=eval("#{controller.to_s.underscore.tableize}_path(:format=>:json)")
34
34
  f.text_area field, opts
35
35
  end
36
36
  end
@@ -64,11 +64,10 @@ function setTextAreaAutoComplete($el) {
64
64
  terms.pop(); // remove the current input
65
65
  terms.push( ui.item.value ); // add the selected item
66
66
  // add placeholder to get the comma-and-space at the end
67
- terms.push("");
67
+ // terms.push("");
68
68
  this.value = terms.join(text_area_delimiter);
69
69
  return false;
70
70
  }
71
71
  });
72
-
73
72
  }
74
73
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: anaf_habtm
3
3
  version: !ruby/object:Gem::Version
4
- hash: 175
4
+ hash: 173
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 88
10
- version: 0.0.88
9
+ - 89
10
+ version: 0.0.89
11
11
  platform: ruby
12
12
  authors:
13
13
  - Tyler Gannon