dynamic_menu 2.0.0 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/dynamic_menu.gemspec +3 -2
- data/lib/dynamic_menu.rb +3 -19
- metadata +20 -4
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 = "2.0.
|
5
|
+
s.version = "2.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}]
|
9
|
-
s.date =
|
9
|
+
s.date = Date.today
|
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.md}, %q{lib/dynamic_menu.rb}]
|
@@ -17,6 +17,7 @@ Gem::Specification.new do |s|
|
|
17
17
|
s.rubyforge_project = %q{dynamic_menu}
|
18
18
|
s.rubygems_version = %q{1.8.6}
|
19
19
|
s.summary = %q{Allow the creation of Menus}
|
20
|
+
s.add_dependency('jquery_cheats', '>= 5.2.2')
|
20
21
|
|
21
22
|
if s.respond_to? :specification_version then
|
22
23
|
s.specification_version = 3
|
data/lib/dynamic_menu.rb
CHANGED
@@ -12,29 +12,13 @@ module DynamicMenu
|
|
12
12
|
genlink += "<a href=\"#{link}\" data-confirm=\"#{confirm}\" data-method=\"delete\" rel=\"nofollow\">
|
13
13
|
#{name}</a>".html_safe
|
14
14
|
elsif link==:submit
|
15
|
-
genlink += "<a href=\"#\"
|
16
|
-
genlink += "<script type=\"text/javascript\">
|
17
|
-
$(document).ready(function(){
|
18
|
-
$('html').keypress(function(e){
|
19
|
-
if(e.which == 13){
|
20
|
-
$('form').submit();
|
21
|
-
return false;
|
22
|
-
}
|
23
|
-
});
|
24
|
-
});</script>".html_safe
|
15
|
+
genlink += "<a href=\"#\" data-submit=\"true\">#{name}</a>".html_safe
|
25
16
|
elsif link == :back
|
26
|
-
genlink = "<a href=\"#\"
|
27
|
-
genlink += "<script type=\"text/javascript\">
|
28
|
-
$(\"#jcheats-back\").live(\"click\",
|
29
|
-
function(){
|
30
|
-
var ref = document.referrer;
|
31
|
-
document.location=ref;
|
32
|
-
});
|
33
|
-
</script>".html_safe
|
17
|
+
genlink = "<a href=\"#\" data-back=\"true\">#{name}</a>".html_safe
|
34
18
|
else
|
35
19
|
genlink = "<a href=\"#{link}\">#{name}</a>".html_safe
|
36
20
|
end
|
37
|
-
@actionMenuItems << genlink
|
21
|
+
@actionMenuItems << genlink.html_safe
|
38
22
|
end
|
39
23
|
|
40
24
|
|
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: 2.0.
|
4
|
+
version: 2.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,8 +9,24 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
13
|
-
dependencies:
|
12
|
+
date: 2013-05-06 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: jquery_cheats
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 5.2.2
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 5.2.2
|
14
30
|
description: Allow the creation of Menus
|
15
31
|
email: travis@pessetto.com
|
16
32
|
executables: []
|
@@ -51,7 +67,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
51
67
|
version: '1.2'
|
52
68
|
requirements: []
|
53
69
|
rubyforge_project: dynamic_menu
|
54
|
-
rubygems_version: 1.8.
|
70
|
+
rubygems_version: 1.8.24
|
55
71
|
signing_key:
|
56
72
|
specification_version: 3
|
57
73
|
summary: Allow the creation of Menus
|