dynamic_menu 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Rakefile +1 -1
- data/dynamic_menu.gemspec +2 -2
- data/lib/dynamic_menu.rb +8 -1
- metadata +2 -2
data/Rakefile
CHANGED
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.
|
|
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-
|
|
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 =
|
|
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.
|
|
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-
|
|
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
|