##// END OF EJS Templates
Do not hide context menu when clicking on a folder menu item....
Jean-Philippe Lang -
r8709:daacea11dc2b
parent child
Show More
@@ -11,7 +11,7
11 11
12 12 <% if @allowed_statuses.present? %>
13 13 <li class="folder">
14 <a href="#" class="submenu" onclick="return false;"><%= l(:field_status) %></a>
14 <a href="#" class="submenu"><%= l(:field_status) %></a>
15 15 <ul>
16 16 <% @allowed_statuses.each do |s| -%>
17 17 <li><%= context_menu_link h(s.name), {:controller => 'issues', :action => 'bulk_update', :ids => @issues.collect(&:id), :issue => {:status_id => s}, :back_url => @back}, :method => :post,
@@ -35,6 +35,10 ContextMenu.prototype = {
35 35 },
36 36
37 37 Click: function(e) {
38 if (Event.element(e).tagName == 'A' && Event.element(e).hasClassName('submenu')) {
39 Event.stop(e)
40 return;
41 }
38 42 this.hideMenu();
39 43 if (Event.element(e).tagName == 'A' || Event.element(e).tagName == 'IMG') { return; }
40 44 if (Event.isLeftClick(e) || (navigator.appVersion.match(/\bMSIE\b/))) {
General Comments 0
You need to be logged in to leave comments. Login now