Commit 0279ca801fb80a6ec5e67097b78a98ad1b2b3427
Committed by
Antonio Terceiro
1 parent
7920593a
Exists in
staging
and in
26 other branches
Fixing bug on navigation submenu trigger
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
app/helpers/application_helper.rb
@@ -1092,7 +1092,7 @@ module ApplicationHelper | @@ -1092,7 +1092,7 @@ module ApplicationHelper | ||
1092 | end | 1092 | end |
1093 | 1093 | ||
1094 | link_to(content_tag(:span, _('People'), :class => 'icon-menu-people'), {:controller => "browse", :action => 'people'}, :id => 'submenu-people') + | 1094 | link_to(content_tag(:span, _('People'), :class => 'icon-menu-people'), {:controller => "browse", :action => 'people'}, :id => 'submenu-people') + |
1095 | - link_to(content_tag(:span, _('People Menu')), '#', :onclick => "toggleSubmenu(this,'',#{links.to_json})", :class => 'menu-submenu-trigger up', :id => 'submenu-people-trigger') | 1095 | + link_to(content_tag(:span, _('People Menu')), '#', :onclick => "toggleSubmenu(this,'',#{links.to_json}); return false", :class => 'menu-submenu-trigger up', :id => 'submenu-people-trigger') |
1096 | end | 1096 | end |
1097 | 1097 | ||
1098 | def browse_communities_menu | 1098 | def browse_communities_menu |
@@ -1107,7 +1107,7 @@ module ApplicationHelper | @@ -1107,7 +1107,7 @@ module ApplicationHelper | ||
1107 | end | 1107 | end |
1108 | 1108 | ||
1109 | link_to(content_tag(:span, _('Communities'), :class => 'icon-menu-community'), {:controller => "browse", :action => 'communities'}, :id => 'submenu-communities') + | 1109 | link_to(content_tag(:span, _('Communities'), :class => 'icon-menu-community'), {:controller => "browse", :action => 'communities'}, :id => 'submenu-communities') + |
1110 | - link_to(content_tag(:span, _('Communities Menu')), '#', :onclick => "toggleSubmenu(this,'',#{links.to_json})", :class => 'menu-submenu-trigger up', :id => 'submenu-communities-trigger') | 1110 | + link_to(content_tag(:span, _('Communities Menu')), '#', :onclick => "toggleSubmenu(this,'',#{links.to_json}); return false", :class => 'menu-submenu-trigger up', :id => 'submenu-communities-trigger') |
1111 | end | 1111 | end |
1112 | 1112 | ||
1113 | end | 1113 | end |