dynamic_menu 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -57,3 +57,14 @@ To prevent long code you can no arrays like so:
57
57
  @actionMenuItems = Array.new
58
58
 
59
59
  @actionMenuItems << ActionMenuItem.new("Link",link_path)
60
+
61
+ ==Updates
62
+ As of 0.2.0 you can now make a custom submit link via the Dynamic Menu. It is buggy in 0.2.0 so we recommend that you use 0.2.1 if you would like to do this. This option requires you to be using JQuery or somehow reference it, as the code to detect the enter key runs with its syntax.
63
+
64
+ To make a link that acts like a submit button simply use :submit as a link.
65
+
66
+ As of 0.2.2 you can use :back as link because it will load a javascript to get you back
67
+
68
+ For example:
69
+
70
+ @actionMenuItems << ActionMenuItem.new("Submit Form",:submit)
data/Rakefile CHANGED
@@ -2,9 +2,9 @@ require 'rubygems'
2
2
  require 'rake'
3
3
  require 'echoe'
4
4
 
5
- Echoe.new('dynamic_menu', '0.2.1') do |p|
5
+ Echoe.new('dynamic_menu', '0.2.2') do |p|
6
6
  p.description = "Allow the creation of Menus"
7
- p.url = "http://es3inc.com"
7
+ p.url = "http://pessetto.com"
8
8
  p.author = "Travis Pessettto"
9
9
  p.email = "travis@pessetto.com"
10
10
  p.ignore_pattern = ["tmp/*", "script/*"]
data/dynamic_menu.gemspec CHANGED
@@ -2,16 +2,16 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{dynamic_menu}
5
- s.version = "0.2.1"
5
+ s.version = "0.2.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}]
9
- s.date = %q{2011-08-03}
9
+ s.date = %q{2011-08-04}
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}]
13
13
  s.files = [%q{README.rdoc}, %q{Rakefile}, %q{dynamic_menu.gemspec}, %q{lib/dynamic_menu.rb}, %q{Manifest}]
14
- s.homepage = %q{http://es3inc.com}
14
+ s.homepage = %q{http://pessetto.com}
15
15
  s.rdoc_options = [%q{--line-numbers}, %q{--inline-source}, %q{--title}, %q{Dynamic_menu}, %q{--main}, %q{README.rdoc}]
16
16
  s.require_paths = [%q{lib}]
17
17
  s.rubyforge_project = %q{dynamic_menu}
data/lib/dynamic_menu.rb CHANGED
@@ -29,6 +29,8 @@ module DynamicMenu
29
29
  }
30
30
  });
31
31
  });</script>".html_safe
32
+ elsif link == :back
33
+ @link_tag = link_to_function name, "history.back()"
32
34
  else
33
35
  @link_tag = link_to name, link
34
36
  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.1
4
+ version: 0.2.2
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-03 00:00:00.000000000Z
12
+ date: 2011-08-04 00:00:00.000000000Z
13
13
  dependencies: []
14
14
  description: Allow the creation of Menus
15
15
  email: travis@pessetto.com
@@ -24,7 +24,7 @@ files:
24
24
  - dynamic_menu.gemspec
25
25
  - lib/dynamic_menu.rb
26
26
  - Manifest
27
- homepage: http://es3inc.com
27
+ homepage: http://pessetto.com
28
28
  licenses: []
29
29
  post_install_message:
30
30
  rdoc_options: