dynamic_menu 1.0.0 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/dynamic_menu.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{dynamic_menu}
5
- s.version = "1.0.0"
5
+ s.version = "1.0.2"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = [%q{Travis Pessettto}]
data/lib/dynamic_menu.rb CHANGED
@@ -10,7 +10,7 @@ module DynamicMenu
10
10
  #{name}</a>".html_safe
11
11
  elsif link==:submit
12
12
  genlink += "<a href=\"#\" onclick=\"$('form').submit(); return false;\">#{name}</a>".html_safe
13
- @link_tag += "<script type=\"text/javascript\">
13
+ genlink += "<script type=\"text/javascript\">
14
14
  $(document).ready(function(){
15
15
  $('html').keypress(function(e){
16
16
  if(e.which == 13){
@@ -29,15 +29,12 @@ module DynamicMenu
29
29
  });
30
30
  </script>".html_safe
31
31
  else
32
- genlink = "<a href=\"#{link}\">#{name}<a>".html_safe
32
+ genlink = "<a href=\"#{link}\">#{name}</a>".html_safe
33
33
  end
34
34
  return genlink
35
35
  end
36
36
 
37
37
 
38
- def foo
39
- "bar"
40
- end
41
38
 
42
39
  end
43
40
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dynamic_menu
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: