dynamic_menu 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
  require 'rake'
3
3
  require 'echoe'
4
4
 
5
- Echoe.new('dynamic_menu', '0.2.2') do |p|
5
+ Echoe.new('dynamic_menu', '0.2.3') do |p|
6
6
  p.description = "Allow the creation of Menus"
7
7
  p.url = "http://pessetto.com"
8
8
  p.author = "Travis Pessettto"
data/dynamic_menu.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{dynamic_menu}
5
- s.version = "0.2.2"
5
+ s.version = "0.2.3"
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}]
9
- s.date = %q{2011-08-04}
9
+ s.date = %q{2011-08-08}
10
10
  s.description = %q{Allow the creation of Menus}
11
11
  s.email = %q{travis@pessetto.com}
12
12
  s.extra_rdoc_files = [%q{README.rdoc}, %q{lib/dynamic_menu.rb}]
data/lib/dynamic_menu.rb CHANGED
@@ -30,7 +30,14 @@ module DynamicMenu
30
30
  });
31
31
  });</script>".html_safe
32
32
  elsif link == :back
33
- @link_tag = link_to_function name, "history.back()"
33
+ @link_tag = "<a href=\"#\" id=\"jcheats-back\">#{name}</a>".html_safe
34
+ @link_tag += "<script type=\"text/javascript\">
35
+ $(\"#jcheats-back\").live(\"click\",
36
+ function(){
37
+ var ref = document.referrer;
38
+ document.location=ref;
39
+ });
40
+ </script>".html_safe
34
41
  else
35
42
  @link_tag = link_to name, link
36
43
  end #end if submit
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: 0.2.2
4
+ version: 0.2.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-08-04 00:00:00.000000000Z
12
+ date: 2011-08-08 00:00:00.000000000Z
13
13
  dependencies: []
14
14
  description: Allow the creation of Menus
15
15
  email: travis@pessetto.com