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 +1 -1
- data/lib/dynamic_menu.rb +2 -5
- metadata +1 -1
data/dynamic_menu.gemspec
CHANGED
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
|
-
|
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}
|
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
|