lib/dynamic_menu.rb in dynamic_menu-0.2.0 vs lib/dynamic_menu.rb in dynamic_menu-0.2.1
- old
+ new
@@ -20,10 +20,10 @@
#make it easy to include a submit button via link...for enter support...requires
#JQUERY!!!
@link_tag = link_to_function name, "$('form').submit()"
@link_tag += "<script type=\"text/javascript\">
$(document).ready(function(){
- $('form').keypress(function(e){
+ $('html').keypress(function(e){
if(e.which == 13){
$('form').submit();
return false;
}
});
\ No newline at end of file